Module visibility

Module visibility 

Source

Structs§

RenderVisibilityRangePlugin
A plugin that enables RenderVisibilityRangess, which allow entities to be hidden or shown based on distance to the camera.
RenderVisibilityRanges
Stores information related to VisibilityRanges in the render world.
RenderVisibleEntities
Collection of entities visible from the current view.

Constants§

VISIBILITY_RANGES_STORAGE_BUFFER_COUNT
We need at least 4 storage buffer bindings available to enable the visibility range buffer.

Functions§

extract_visibility_ranges
Extracts all VisibilityRange components from the main world to the render world and inserts them into RenderVisibilityRanges.
write_render_visibility_ranges
Writes the RenderVisibilityRanges table to the GPU.