Fix point light radius (#9493)

# Objective

Fixes #9488

## Solution

Set point light radius to always be 0.0. Reading this value from glTF
would require using application specific extras property.

---

## Changelog

### Fixed

- #9488 Point Lights use Range for Radius when importing from GLTF
This commit is contained in:
Ada Hieta 2023-08-20 09:24:45 +03:00 committed by GitHub
parent 756b044f39
commit a024a1f3b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,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(0.0),
radius: 0.0,
..Default::default()
},
..Default::default()