Module visibility

Source

Structs§

InheritedVisibility
Whether or not an entity is visible in the hierarchy. This will not be accurate until VisibilityPropagate runs in the PostUpdate schedule.
NoFrustumCulling
Use this component to opt-out of built-in frustum culling for entities, see Frustum.
RenderLayers
Describes which rendering layers an entity belongs to.
RenderVisibilityRanges
Stores information related to VisibilityRanges in the render world.
RenderVisibleEntities
Collection of entities visible from the current view.
ViewVisibility
Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering.
VisibilityBundleDeprecated
A Bundle of the Visibility, InheritedVisibility, and ViewVisibility Components, which describe the visibility of an entity.
VisibilityPlugin
VisibilityRange
Specifies the range of distances that this entity must be from the camera in order to be rendered.
VisibilityRangePlugin
A plugin that enables VisibilityRanges, which allow entities to be hidden or shown based on distance to the camera.
VisibleEntities
Collection of entities visible from the current view.
VisibleEntityRanges
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.
VisibilitySystems

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 Aabb component to entities with a Mesh3d component and without a NoFrustumCulling component.
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 VisibilityRange components from the main world to the render world and inserts them into RenderVisibilityRanges.
update_frusta
Updates Frustum.
write_render_visibility_ranges
Writes the RenderVisibilityRanges table to the GPU.

Type Aliases§

Layer
An identifier for a rendering layer.