SceneContext Type
The scene state passed to a Draw3D.drawImmediate callback: everything the pipeline gathered for the current frame (active camera, view/projection matrices, lights, the shadow pass output, elapsed time). Use it for fully-custom draws that need the scene data — water/refraction, screen-space effects, multi-pass.
Read-only snapshot of the frame's gather; raylib device state is global (Raylib.*/Rlgl.*),
so there is no Device field (unlike the MonoGame backend). The pipeline restores camera scope
around the callback. SceneContext.Shadows is
ValueNone when no shadow-casting light exists.
Record fields
| Record Field |
Description
|
The active camera config.
|
|
|
The frame's accumulated lights (ambient + directional + point + spot).
|
|
The active camera's projection matrix.
|
|
The frame's shadow pass output — ValueNone when no shadow-casting light exists.
|
Full Usage:
Time
Field type: float32
|
Total elapsed game time, in seconds — the animation clock.
|
The active camera's view matrix.
|
Mibo