Skip to main content

Interface: PointLightOptions

Defined in: core/Lighting.ts:30

Options for configuring a point light.

Properties

castShadow?

optional castShadow: boolean

Defined in: core/Lighting.ts:42

Whether the light casts shadows. Defaults to false.


color?

optional color: string

Defined in: core/Lighting.ts:32

Light color. Defaults to '#ffffff'.


decay?

optional decay: number

Defined in: core/Lighting.ts:40

Light decay rate. Defaults to 2 (physically correct).


distance?

optional distance: number

Defined in: core/Lighting.ts:38

Maximum range of the light. Defaults to 0 (no limit).


intensity?

optional intensity: number

Defined in: core/Lighting.ts:34

Light intensity. Defaults to 1.


position?

optional position: [number, number, number]

Defined in: core/Lighting.ts:36

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