Expand description
Order Independent Transparency (OIT) for 3d rendering. See OrderIndependentTransparencyPlugin
for more details.
Modules§
- resolve
- Module that defines the necesasry systems to resolve the OIT buffer and render it to the screen.
Structs§
- OitBuffers
- Holds the buffers that contain the data of all OIT layers. We use one big buffer for the entire app. Each camaera will reuse it so it will always be the size of the biggest OIT enabled camera.
- Order
Independent Transparency Plugin - A plugin that adds support for Order Independent Transparency (OIT). This can correctly render some scenes that would otherwise have artifacts due to alpha blending, but uses more memory.
- Order
Independent Transparency Settings - Used to identify which camera will use OIT to render transparent meshes and to configure OIT.
- Order
Independent Transparency Settings Offset
Constants§
- OIT_
DRAW_ SHADER_ HANDLE - Shader handle for the shader that draws the transparent meshes to the OIT layers buffer.
Functions§
- prepare_
oit_ buffers - This creates or resizes the oit buffers for each camera. It will always create one big buffer that’s as big as the biggest buffer needed. Cameras with smaller viewports or less layers will simply use the big buffer and ignore the rest.