API

Interface ImageProcessingConfig

Image processing configuration.

interface ImageProcessingConfig {
    contrast: number;
    exposure: number;
    toneMapping?: ToneMapping;
    toneMappingEnabled: boolean;
}
Index
contrast: number
exposure: number
toneMapping?: ToneMapping

Tone mapping algorithm applied by PBR materials when toneMappingEnabled is true. Undefined means the default StandardToneMapping (exponential). Assign a built-in (StandardToneMapping, AcesToneMapping, NeutralToneMapping) or a custom ToneMapping.

This is baked into the PBR shaders at registerScene() time. To change it after registration, use setSceneImageProcessing so the affected pipelines are rebuilt.

toneMappingEnabled: boolean