The options for the simple viewer scene.

interface SimpleViewerSceneOptions {
    ambientLight?: boolean;
    ao?: boolean;
    directionalLight?: boolean;
    enableHDRToneMap?: boolean;
    filmicTonMap?: boolean;
    initialiseCameraToModel?: boolean;
    limitCSGDepth?: boolean;
    maxCSGDepth?: number;
    orbitControl?: boolean;
    shadowQuality?: ShadowQuality;
    shadows?: boolean;
    toneMapExposure?: number;
    variantShadowMap?: boolean;
}

Properties

ambientLight?: boolean

Should we add an ambient light? (default true)

Set to false if you load an environment map and don't want an extra ambient light, as the environment map itself acts as an ambient light.

ao?: boolean

Is ambient occlusion enabled? (default true)

directionalLight?: boolean

Is the directional light enabled? (default true)

enableHDRToneMap?: boolean

Should we enable HDR tone mapping? (default true)

filmicTonMap?: boolean

Should we use the filmic tone mapping? (default true)

Enables using ACES filmic tone tapping, otherwise neutral tonemapping will be used.

initialiseCameraToModel?: boolean

Should we initialise the camera to the model? (default true)

limitCSGDepth?: boolean

Should we limit the CSG depth? (default false)

This is used to limit the depth of the CSG operations to avoid very deep recursions.

maxCSGDepth?: number

The maximum CSG depth to use. (default 20)

orbitControl?: boolean

Should we setup an orbit control? (default true)

shadowQuality?: ShadowQuality

The shadow quality to use. (default ShadowQuality.HIGH)

shadows?: boolean

Are shadows enabled? (defualt true)

toneMapExposure?: number

The exposure for the tonemapping. (default 0.25)

variantShadowMap?: boolean

Should we use variant shadow mapping? (default false)