Skip to content

LightSourceOptions

Defined in: lighting/src/LightSource.ts:8

Options accepted by LightSource.

optional color?: number

Defined in: lighting/src/LightSource.ts:14

RGB tint used by renderers that support coloured light. Default 0xffffff.


optional enabled?: boolean

Defined in: lighting/src/LightSource.ts:16

Whether the source starts enabled. Default true.


optional intensity?: number

Defined in: lighting/src/LightSource.ts:12

Peak contribution at the light’s centre, from 0 to 1. Default 1.


radius: number

Defined in: lighting/src/LightSource.ts:10

Light radius in world pixels.