ShadowCasterData Type
Data for a single shadow caster in the atlas.
Record fields
| Record Field |
Description
|
Full Usage:
AtlasRegion
Field type: int
|
Index of first atlas region (0-based).
|
Full Usage:
BiasOverride
Field type: float32 voption
|
Per-caster shadow bias override (None = use global).
|
Full Usage:
Enabled
Field type: bool
|
Whether this caster is currently casting shadows.
|
|
Unique identifier for this caster.
|
|
Direction the light shines (normalized).
|
|
World-space position of the light (for point/spot).
|
|
Target point for spot lights.
|
Full Usage:
RegionCount
Field type: int
|
Number of atlas regions used (1 for directional/spot, 6 for point).
|
|
Type of light (directional, point, spot).
|
View-projection matrix for this caster (filled during shadow pass).
|
Mibo.Raylib