Skip to main content

sun_direction

Function sun_direction 

Source
pub fn sun_direction(uniforms: &LightUniforms) -> [f32; 3]
Expand description

The direction the cascade shadow projection and the fog ray-march follow: the first declared directional light, or the neutral sun a world with none falls back to. Backends cache this at init and re-derive it when the light set changes.