Header menu logo Mibo.Raylib

SpotLight3D Type

Spot light configuration for cone-shaped lights with distance attenuation.

Record fields

Record Field Description

CastsShadows

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.

Field type: bool

Color

Full Usage: Color

Field type: Color

Color of the spot light.

Field type: Color

Direction

Full Usage: Direction

Field type: Vector3

Direction the spot light points (should be normalized).

Field type: Vector3

InnerCutoff

Full Usage: InnerCutoff

Field type: float32

Cosine of the inner cone half-angle (full brightness).

Field type: float32

Intensity

Full Usage: Intensity

Field type: float32

Intensity multiplier.

Field type: float32

OuterCutoff

Full Usage: OuterCutoff

Field type: float32

Cosine of the outer cone half-angle (fade to zero).

Field type: float32

Position

Full Usage: Position

Field type: Vector3

World-space position of the light.

Field type: Vector3

Radius

Full Usage: Radius

Field type: float32

Maximum distance the light reaches.

Field type: float32

ShadowBias

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.

Field type: float32 voption

Type something to start searching.