From 5d093e557feed35f3b95601ca55b4c16ac9a3111 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Sat, 1 Jan 2022 05:36:52 +0100 Subject: [PATCH] bevy_gltf: Set light radius to 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Radius is the size of the inside of the light and defaults to 0 in bevy. It is unspecified in gltf. Co-authored-by: François --- crates/bevy_gltf/src/loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_gltf/src/loader.rs b/crates/bevy_gltf/src/loader.rs index d02487ac51451..0669ca833a629 100644 --- a/crates/bevy_gltf/src/loader.rs +++ b/crates/bevy_gltf/src/loader.rs @@ -576,7 +576,7 @@ fn load_node( // For a point light, luminous power = 4 * pi * luminous intensity intensity: light.intensity() * std::f32::consts::PI * 4.0, range: light.range().unwrap_or(20.0), - radius: light.range().unwrap_or(20.0), + radius: light.range().unwrap_or(0.0), ..Default::default() }, ..Default::default()