Skip to main content

directional_light_data

Function directional_light_data 

Source
pub fn directional_light_data(
    lights: &[DirectionalLight],
) -> ([DirectionalLightData; 4], i32)
Expand description

The LightUniforms directional slots and their count for lights, padded with zeroed entries. Shared by the init-time build below and the live crate::render::backend::RenderBackend::update_directional_lights seam, so a sun edited at runtime packs exactly as a relaunch would pack it.