Skip to main content

compute_fog

Function compute_fog 

Source
pub fn compute_fog(
    pitch: f64,
    camera_distance: f64,
    background_color: [f32; 4],
    config: Option<&FogConfig>,
) -> ComputedFog
Expand description

Compute fog parameters from camera state and optional user config.

This centralises the fog math that was previously duplicated in the WGPU and Bevy renderers.