Skip to main content

scene_light_map

Function scene_light_map 

Source
pub fn scene_light_map(
    visual: &Rc<ServerCompositionVisual>,
    brush_light_ids: &[String],
) -> LightMap
Expand description

The lights a scene lighting effect painted in visual receives: the composition lights that target the visual (or an ancestor), and the lights of XAML lights whose id is one of brush_light_ids and whose element holds the visual. The light map is in the coordinates of the visual, with the attenuation in units of SCENE_LIGHTING_DISTANCE_UNIT. Every such light, enabled or not, remembers the visual, which it draws again when it changes.