Skip to content

Interface: LightingState ​

Defined in: serialization/ViewerState.ts:31

Properties ​

ambientIntensity? ​

ts
ambientIntensity?: number;

Defined in: serialization/ViewerState.ts:32


directionalIntensity? ​

ts
directionalIntensity?: number;

Defined in: serialization/ViewerState.ts:33


directionalPosition? ​

ts
directionalPosition?: [number, number, number];

Defined in: serialization/ViewerState.ts:35

World position of the key light; recorded only while the headlight is off.


headlight? ​

ts
headlight?: boolean;

Defined in: serialization/ViewerState.ts:37

Camera-attached key and fill lights (absent in states saved by earlier releases).

Released under the MIT License.