SceneData Type
The per-frame gather of scene-global state that the shadow pass and the shading pass both need: the active camera's view/projection, the accumulated lights, and the shadow origin override.
Populated once per frame by SceneData.gather walking the command buffer. The LightBuffers instance is owned by the caller (reused across frames — no per-frame allocation); gather clears and repopulates it.
Record fields
| Record Field |
Description
|
|
The active camera config.
|
|
The camera config (viewport/clear/post-process), if a BeginCameraConfig was used.
|
Full Usage:
HasCamera
Field type: bool
Modifiers: mutable |
Whether a camera command was seen this frame (gates shadow/forward passes).
|
|
The accumulated lights (owned by the caller; cleared + repopulated here).
|
|
The active camera's projection matrix (aspect-corrected in the forward pass).
|
|
The frame's shadow-origin override, if
|
The active camera's view matrix.
|
Mibo