Function bevy::render::view::visibility::check_visibility
source · pub fn check_visibility(
thread_queues: Local<'_, ThreadLocal<Cell<Vec<Entity>>>>,
view_query: Query<'_, '_, (&mut VisibleEntities, &Frustum, Option<&RenderLayers>, &Camera)>,
visible_aabb_query: Query<'_, '_, (Entity, &InheritedVisibility, &mut ViewVisibility, Option<&RenderLayers>, Option<&Aabb>, &GlobalTransform, Has<NoFrustumCulling>)>,
deterministic_rendering_config: Res<'_, DeterministicRenderingConfig>
)
Expand description
System updating the visibility of entities each frame.
The system is part of the VisibilitySystems::CheckVisibility
set. Each frame, it updates the
ViewVisibility
of all entities, and for each view also compute the VisibleEntities
for that view.