Skip to main content

compute_sky

Function compute_sky 

Source
pub fn compute_sky(config: &SkyConfig, fallback_sun: [f32; 2]) -> ComputedSky
Expand description

Compute GPU-ready sky parameters from the user config.

fallback_sun is the directional light direction [azimuth_deg, altitude_deg] used when the sky config does not specify an explicit sun position.