Skip to content

Commit a9cb18e

Browse files
add default direction to DirectionalLight docs (#5188)
# Objective - Adds a default direction to the documentation of DirectionalLight ## Solution Suggestion from Q&A answer: #5186 (reply in thread)
1 parent fdcffb8 commit a9cb18e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bevy_pbr/src/light.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ impl Default for SpotLight {
144144
/// approximation for light sources VERY far away, like the sun or
145145
/// the moon.
146146
///
147+
/// The light shines along the forward direction of the entity's transform. With a default transform
148+
/// this would be along the negative-Z axis.
149+
///
147150
/// Valid values for `illuminance` are:
148151
///
149152
/// | Illuminance (lux) | Surfaces illuminated by |

0 commit comments

Comments
 (0)