MotionScript

@motion-script/core


@motion-script/core / DirectionalLight3D

Interface: DirectionalLight3D

Defined in: render3d/light.ts:58

Parallel rays from an infinitely distant source — sunlight. Only the light's direction matters, which is the vector from its position to target.

Extends

Properties

color?

optional color?: Color

Defined in: render3d/light.ts:60


intensity?

optional intensity?: number

Defined in: render3d/light.ts:61


params?

optional params?: Record<string, unknown>

Defined in: render3d/geometry.ts:14

Inherited from

Passthrough3D.params


shadow?

optional shadow?: DirectionalLightShadow3D

Defined in: render3d/light.ts:64


target?

optional target?: Vector3Input

Defined in: render3d/light.ts:63

World-space point the light aims at. Default origin.


type

type: "directional"

Defined in: render3d/light.ts:59