SpotLight Type
Spot light (conical). Directional point light with inner/outer cone falloff.
Record fields
| Record Field |
Description
|
Light color. Multiplied with intensity for final contribution. Tinting can create mood effects (e.g., red for emergency lights).
|
|
Direction the spot is pointing (should be normalized). Points along the cone's central axis.
|
|
Full Usage:
InnerConeAngle
Field type: float32
|
Inner cone angle (radians). Full intensity within this angle. Creates a bright, unblurred center region (hotspot). Use MathHelper.ToRadians(degrees) for degree values.
|
Full Usage:
Intensity
Field type: float32
|
Peak intensity at the light source. Light attenuates toward zero at Range distance. Higher values = brighter, more concentrated light.
|
Full Usage:
OuterConeAngle
Field type: float32
|
Outer cone angle (radians). Intensity fades to zero between Inner and Outer angles. Defines the full extent of the cone (penumbra). Should be larger than InnerConeAngle.
|
World position of light source (tip of the cone). Light direction and attenuation calculated from this point.
|
|
Full Usage:
Range
Field type: float32
|
Maximum range of influence. Light attenuation falls to zero at this distance. Defines how far the spotlight cone extends.
|
|
Shadow settings. Spot lights use standard 2D shadow maps (perspective projection).
|
Full Usage:
SourceRadius
Field type: float32
|
Physical radius of the light source.
|
Mibo