Header menu logo Mibo.Raylib

DirectionalLight2D Type

A directional light (sun, moon) with parallel rays.

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

Direction

Full Usage: Direction

Field type: Vector2

Normalized direction the light travels IN (not toward). E.g. (0.3, -0.7) for sun shining down-right.

Field type: Vector2

Intensity

Full Usage: Intensity

Field type: float32

Brightness multiplier. 1.0 = full, 0.0 = off.

Field type: float32

Type something to start searching.