Header menu logo Mibo.Raylib

PointLight3D Type

Point light configuration for 3D scenes.

Record fields

Record Field Description

CastsShadows

Full Usage: CastsShadows

Field type: bool

Whether this point 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 point light.

Field type: Color

Falloff

Full Usage: Falloff

Field type: float32

Falloff curve exponent. 1.0 = linear, 2.0 = quadratic.

Field type: float32

Intensity

Full Usage: Intensity

Field type: float32

Brightness multiplier. 1.0 = full, 0.0 = off.

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 radius of influence.

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.