ShadowResult Type
The shadow pass output for a frame: the atlas texture + the packed shadow-sampling uniforms a shader consumes. ShadowResult.Atlas is the depth atlas; the arrays are sized to the active caster count.
Built by the pipeline's shadow pass; ValueNone when no shadow-casting light exists.
A custom/user effect opts into shadows by declaring these uniforms (by name) — see
SceneUpload.uploadToEffect.
Record fields
| Record Field |
Description
|
Full Usage:
ActiveCasterCount
Field type: int
|
The number of active caster regions (the live length of the packed arrays).
|
The shadow depth atlas. Bound to sampler slot 15 (PointClamp) by SceneUpload.
|
|
Full Usage:
Biases
Field type: float32[]
|
The per-caster receiver-side bias (
|
Full Usage:
DirLightCastsShadows
Field type: bool
|
Whether the directional light casts shadows (the
|
Full Usage:
PointLightShadowIdx
Field type: int[]
|
The per-point-light shadow atlas slot (-1 = no shadow), indexed by PointLights position.
|
Full Usage:
SpotLightShadowIdx
Field type: int[]
|
The per-spot-light shadow atlas slot (-1 = no shadow), indexed by SpotLights position.
|
Full Usage:
TexelSize
Field type: float32
|
|
The packed
|
|
The packed
|
Mibo