Skip to main content

automatically_add_parallax_correction_components

Function automatically_add_parallax_correction_components 

Source
pub fn automatically_add_parallax_correction_components(
    commands: Commands<'_, '_>,
    query: Query<'_, '_, Entity, (With<EnvironmentMapLight>, With<LightProbe>, Without<ParallaxCorrection>)>,
)
Expand description

A system that automatically adds a ParallaxCorrection::Auto component to any reflection probe that doesn’t already have a ParallaxCorrection component.

A reflection probe is any entity with both an EnvironmentMapLight and a LightProbe component.