Skip to main content

Class: PunctualLightController

Defined in: modules/engine/src/scenegraph/controllers/punctual-light-controller.ts:31

Projects bound lights using live node transforms and inherited visibility.

Constructors​

Constructor​

new PunctualLightController(bindings, useByteColors?): PunctualLightController

Defined in: modules/engine/src/scenegraph/controllers/punctual-light-controller.ts:34

Parameters​

bindings​

readonly PunctualLightBinding[]

useByteColors?​

boolean = true

Returns​

PunctualLightController

Properties​

lights​

readonly lights: Light[] = []

Defined in: modules/engine/src/scenegraph/controllers/punctual-light-controller.ts:32

Methods​

update()​

update(): void

Defined in: modules/engine/src/scenegraph/controllers/punctual-light-controller.ts:42

Refreshes the stable light array after node or light properties change.

Returns​

void