Skip to main content

Interface: DirectionalLightOptions

Defined in: core/Lighting.ts:16

Options for configuring a directional light.

Properties

castShadow?

optional castShadow: boolean

Defined in: core/Lighting.ts:24

Whether the light casts shadows. Defaults to false.


color?

optional color: string

Defined in: core/Lighting.ts:18

Light color. Defaults to '#ffffff'.


intensity?

optional intensity: number

Defined in: core/Lighting.ts:20

Light intensity. Defaults to 1.


position?

optional position: [number, number, number]

Defined in: core/Lighting.ts:22

Light position [x, y, z]. Defaults to [5, 10, 7].