Header menu logo Mibo.Raylib

ShadowCasterData Type

Data for a single shadow caster in the atlas.

Record fields

Record Field Description

AtlasRegion

Full Usage: AtlasRegion

Field type: int

Index of first atlas region (0-based).

Field type: int

BiasOverride

Full Usage: BiasOverride

Field type: float32 voption

Per-caster shadow bias override (None = use global).

Field type: float32 voption

Enabled

Full Usage: Enabled

Field type: bool

Whether this caster is currently casting shadows.

Field type: bool

Id

Full Usage: Id

Field type: int<MeasureProduct<ShadowCasterId, MeasureOne>>

Unique identifier for this caster.

Field type: int<MeasureProduct<ShadowCasterId, MeasureOne>>

LightDirection

Full Usage: LightDirection

Field type: Vector3

Direction the light shines (normalized).

Field type: Vector3

LightPosition

Full Usage: LightPosition

Field type: Vector3

World-space position of the light (for point/spot).

Field type: Vector3

LightTarget

Full Usage: LightTarget

Field type: Vector3

Target point for spot lights.

Field type: Vector3

RegionCount

Full Usage: RegionCount

Field type: int

Number of atlas regions used (1 for directional/spot, 6 for point).

Field type: int

Type

Full Usage: Type

Field type: ShadowCasterType

Type of light (directional, point, spot).

Field type: ShadowCasterType

ViewProj

Full Usage: ViewProj

Field type: Matrix4x4
Modifiers: mutable

View-projection matrix for this caster (filled during shadow pass).

Field type: Matrix4x4

Type something to start searching.