Skip to main content

collect_visible_cpu_culled_entities

Function collect_visible_cpu_culled_entities 

Source
pub fn collect_visible_cpu_culled_entities(
    cameras: Query<'_, '_, (&mut RenderVisibleEntities, Option<&mut RenderExtractedVisibleEntities>)>,
    lights: Query<'_, '_, (&mut RenderShadowMapVisibleEntities, Option<&mut RenderExtractedShadowMapVisibleEntities>)>,
    visibility_classes: Local<'_, HashSet<TypeId>>,
)
Expand description

Updates the RenderVisibleEntities and RenderShadowMapVisibleEntities components with the contents of the RenderExtractedVisibleEntities and the RenderExtractedShadowMapVisibleEntities components respectively.

This system only handles CPU-culled entities (i.e. those without NoCpuCulling components). The collect_gpu_culled_meshes system in bevy_pbr handles GPU-culled entities.