Header menu logo Mibo

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

CurrentCamera

Full Usage: CurrentCamera

Field type: Camera3D
Modifiers: mutable

The active camera config.

Field type: Camera3D

CurrentConfig

Full Usage: CurrentConfig

Field type: Camera3DConfig voption
Modifiers: mutable

The camera config (viewport/clear/post-process), if a BeginCameraConfig was used.

Field type: Camera3DConfig voption

HasCamera

Full Usage: HasCamera

Field type: bool
Modifiers: mutable

Whether a camera command was seen this frame (gates shadow/forward passes).

Field type: bool

Lights

Full Usage: Lights

Field type: LightBuffers

The accumulated lights (owned by the caller; cleared + repopulated here).

Field type: LightBuffers

Projection

Full Usage: Projection

Field type: Matrix
Modifiers: mutable

The active camera's projection matrix (aspect-corrected in the forward pass).

Field type: Matrix

ShadowOrigin

Full Usage: ShadowOrigin

Field type: Vector3 voption
Modifiers: mutable

The frame's shadow-origin override, if SetShadowOrigin was issued.

Field type: Vector3 voption

View

Full Usage: View

Field type: Matrix
Modifiers: mutable

The active camera's view matrix.

Field type: Matrix

Type something to start searching.