Skip to content

Commit

Permalink
bevy_gltf: Set light radius to 0
Browse files Browse the repository at this point in the history
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 <mockersf@gmail.com>
  • Loading branch information
superdump and mockersf authored Jan 1, 2022
1 parent a84fb93 commit 6c63157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6c63157

Please sign in to comment.