SpotLight3D Type
Spot light configuration for cone-shaped lights with distance attenuation.
Record fields
| Record Field |
Description
|
Full Usage:
CastsShadows
Field type: bool
|
Whether this spot light casts shadows. Pipeline-dependent: Not all rendering pipelines support shadow casting. Pipelines that don't support shadows will ignore this field. Check your pipeline's documentation for shadow support details.
|
Color of the spot light.
|
|
Direction the spot light points (should be normalized).
|
|
Full Usage:
InnerCutoff
Field type: float32
|
Cosine of the inner cone half-angle (full brightness).
|
Full Usage:
Intensity
Field type: float32
|
Intensity multiplier.
|
Full Usage:
OuterCutoff
Field type: float32
|
Cosine of the outer cone half-angle (fade to zero).
|
World-space position of the light.
|
|
Full Usage:
Radius
Field type: float32
|
Maximum distance the light reaches.
|
Full Usage:
ShadowBias
Field type: float32 voption
|
Per-light shadow bias override. When None, uses the pipeline's global bias setting. Pipeline-dependent: Only used by pipelines that support shadow casting. Adjust this value to fix shadow acne (too low) or peter-panning (too high). Typical range: 0.001 to 0.01.
|
Mibo.Raylib