Header menu logo Mibo.Raylib

PointLight2D Type

A radial point light (torch, lamp, explosion).

Record fields

Record Field Description

CastsShadows

Full Usage: CastsShadows

Field type: bool

Whether this light should cast shadows.

Field type: bool

Color

Full Usage: Color

Field type: Color

Color of the 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: Vector2

World-space position of the light source.

Field type: Vector2

Radius

Full Usage: Radius

Field type: float32

Maximum distance the light reaches in world units.

Field type: float32

Type something to start searching.