mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Specify units in AmbientLight::brightness
docs (#13297)
# Objective - Fixes #11933. - Related: #12280. ## Solution - Specify that, after applying `AmbientLight`, the resulting units are in cd/m^2. - This is based on [@fintelia's comment](https://github.com/bevyengine/bevy/issues/11933#issuecomment-1995427587), and will need to be verified. --- ## Changelog - Specified units for `AmbientLight`'s `brightness` field.
This commit is contained in:
parent
001cc147c6
commit
c37e81b34a
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ use super::*;
|
|||
pub struct AmbientLight {
|
||||
pub color: Color,
|
||||
/// A direct scale factor multiplied with `color` before being passed to the shader.
|
||||
///
|
||||
/// After applying this multiplier, the resulting value should be in units of [cd/m^2].
|
||||
///
|
||||
/// [cd/m^2]: https://en.wikipedia.org/wiki/Candela_per_square_metre
|
||||
pub brightness: f32,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue