Structs§
- Inherited
Visibility - Whether or not an entity is visible in the hierarchy.
This will not be accurate until
VisibilityPropagateruns in thePostUpdateschedule. - NoFrustum
Culling - Use this component to opt-out of built-in frustum culling for entities, see
Frustum. - Render
Layers - Describes which rendering layers an entity belongs to.
- Render
Visibility Ranges - Stores information related to
VisibilityRanges in the render world. - View
Visibility - Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
- Visibility
Bundle - A
Bundleof theVisibility,InheritedVisibility, andViewVisibilityComponents, which describe the visibility of an entity. - Visibility
Plugin - Visibility
Range - Specifies the range of distances that this entity must be from the camera in order to be rendered.
- Visibility
Range Plugin - A plugin that enables
VisibilityRanges, which allow entities to be hidden or shown based on distance to the camera. - Visible
Entities - Collection of entities visible from the current view.
- Visible
Entity Ranges - Stores which entities are in within the
VisibilityRanges of views.
Enums§
- Visibility
- User indication of whether an entity is visible. Propagates down the entity hierarchy.
- Visibility
Systems
Constants§
- DEFAULT_
LAYERS - VISIBILITY_
RANGES_ STORAGE_ BUFFER_ COUNT - We need at least 4 storage buffer bindings available to enable the visibility range buffer.
Functions§
- calculate_
bounds - Computes and adds an
Aabbcomponent to entities with aHandle<Mesh>component and without aNoFrustumCullingcomponent. - check_
visibility - System updating the visibility of entities each frame.
- check_
visibility_ ranges - Checks all entities against all views in order to determine which entities
with
VisibilityRanges are potentially visible. - extract_
visibility_ ranges - Extracts all
VisibilityRangecomponents from the main world to the render world and inserts them intoRenderVisibilityRanges. - update_
frusta - Updates
Frustum. - write_
render_ visibility_ ranges - Writes the
RenderVisibilityRangestable to the GPU.
Type Aliases§
- Layer
- An identifier for a rendering layer.
- With
Mesh - A convenient alias for
With<Handle<Mesh>>, for use withVisibleEntities.