diff --git a/crates/bevy_gltf/Cargo.toml b/crates/bevy_gltf/Cargo.toml index 80291f06e22ac..9a86255e7521e 100644 --- a/crates/bevy_gltf/Cargo.toml +++ b/crates/bevy_gltf/Cargo.toml @@ -28,9 +28,10 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" } bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" } # other -gltf = { version = "1.0.0", default-features = false, features = [ +gltf = { version = "1.3.0", default-features = false, features = [ "KHR_lights_punctual", "KHR_materials_unlit", + "KHR_materials_emissive_strength", "extras", "names", "utils", diff --git a/crates/bevy_gltf/src/loader.rs b/crates/bevy_gltf/src/loader.rs index cdce72b1d9985..7b737fec0ed74 100644 --- a/crates/bevy_gltf/src/loader.rs +++ b/crates/bevy_gltf/src/loader.rs @@ -678,7 +678,8 @@ fn load_material(material: &Material, load_context: &mut LoadContext) -> Handle< Some(Face::Back) }, occlusion_texture, - emissive: Color::rgb_linear(emissive[0], emissive[1], emissive[2]), + emissive: Color::rgb_linear(emissive[0], emissive[1], emissive[2]) + * material.emissive_strength().unwrap_or(1.0), emissive_texture, unlit: material.unlit(), alpha_mode: alpha_mode(material),