Skip to content

Interface: LightingState ​

Defined in: serialization/ViewerState.ts:30

Properties ​

ambientIntensity? ​

ts
optional ambientIntensity?: number;

Defined in: serialization/ViewerState.ts:31


directionalIntensity? ​

ts
optional directionalIntensity?: number;

Defined in: serialization/ViewerState.ts:32


directionalPosition? ​

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

Defined in: serialization/ViewerState.ts:34

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


headlight? ​

ts
optional headlight?: boolean;

Defined in: serialization/ViewerState.ts:36

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

Released under the MIT License.