Logo Mibo

LightBuffers Type

Per-pipeline light accumulator. Created once at construction; cleared and repopulated each frame (mirrors the canonical raylib LightBuffers double-scan pattern).

Public so custom pipelines and the shadow pass can read the gathered lights.

In single-camera frames the accumulator holds every light command in the buffer, frame-globally. In frames with more than one camera block the lights are scoped per block: a block that issues its own light commands resets the accumulator to the frame defaults (the light commands issued outside any camera block) and applies its own commands in-order; a block that issues none inherits the previous block's set.

Record fields

Record Field Description

Ambient

Full Usage: Ambient

Field type: AmbientLight3D voption
Modifiers: mutable

Ambient light for the active camera block (single slot).

Field type: AmbientLight3D voption

DirLights

Full Usage: DirLights

Field type: ResizeArray<DirectionalLight3D>

Directional lights accumulated for the active camera block.

Field type: ResizeArray<DirectionalLight3D>

PointLights

Full Usage: PointLights

Field type: ResizeArray<PointLight3D>

Point lights accumulated for the active camera block.

Field type: ResizeArray<PointLight3D>

SpotLights

Full Usage: SpotLights

Field type: ResizeArray<SpotLight3D>

Spot lights accumulated for the active camera block.

Field type: ResizeArray<SpotLight3D>

Type something to start searching.