Module bevy::render::view::visibility
source · Structs§
- Whether or not an entity is visible in the hierarchy. This will not be accurate until
VisibilityPropagateruns in thePostUpdateschedule. - Use this component to opt-out of built-in frustum culling for entities, see
Frustum. - Describes which rendering layers an entity belongs to.
- Stores information related to
VisibilityRanges in the render world. - Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
- A
Bundleof theVisibility,InheritedVisibility, andViewVisibilityComponents, which describe the visibility of an entity. - Specifies the range of distances that this entity must be from the camera in order to be rendered.
- A plugin that enables
VisibilityRanges, which allow entities to be hidden or shown based on distance to the camera. - Collection of entities visible from the current view.
- Stores which entities are in within the
VisibilityRanges of views.
Enums§
- User indication of whether an entity is visible. Propagates down the entity hierarchy.
Constants§
- We need at least 4 storage buffer bindings available to enable the visibility range buffer.
Functions§
- Computes and adds an
Aabbcomponent to entities with aHandle<Mesh>component and without aNoFrustumCullingcomponent. - System updating the visibility of entities each frame.
- Checks all entities against all views in order to determine which entities with
VisibilityRanges are potentially visible. - Extracts all
VisibilityRangecomponents from the main world to the render world and inserts them intoRenderVisibilityRanges. - Updates
Frustum. - Writes the
RenderVisibilityRangestable to the GPU.
Type Aliases§
- An identifier for a rendering layer.
- A convenient alias for
With<Handle<Mesh>>, for use withVisibleEntities.