Header menu logo Mibo

SceneData Module

The reusable scene-gather: walks the buffer once for camera + lights + shadow origin.

Functions and values

Function or value Description

gather buildMatrices data buffer

Full Usage: gather buildMatrices data buffer

Parameters:
    buildMatrices : Camera3D -> Matrix * Matrix - Camera → (view, projection). Passed in so this module has no dependency on the matrix-construction convention (lives in ForwardPipeline/ForwardPipelineBase).
    data : byref<SceneData> - The caller-owned gather record (Lights is reused across frames).
    buffer : RenderBuffer3D

Clears the lights and gathers the scene-global state from the buffer: the active camera (BeginCamera/BeginCameraConfig — last one wins), all lights, and the shadow origin. Draw commands are ignored (they're handled in the forward pass).

buildMatrices : Camera3D -> Matrix * Matrix

Camera → (view, projection). Passed in so this module has no dependency on the matrix-construction convention (lives in ForwardPipeline/ForwardPipelineBase).

data : byref<SceneData>

The caller-owned gather record (Lights is reused across frames).

buffer : RenderBuffer3D

Type something to start searching.