Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class ColorGradingElement

    Parametric color grading (contrast/saturation/temperature-tint/lift-gamma-gain), applied in display-referred space after tone mapping. Distinct from the filterMode camera-look presets (Night Vision, Noir, ...) -- this is an always-available continuous grading layer, not one of those mutually exclusive stylized filters.

    Hierarchy (View Summary)

    Index
    contrast: number = 1.0

    Contrast around mid-gray pivot (default: 1.0, no change).

    enabled: boolean = true

    If false, the effect will be bypassed (cheap).

    gain: Color = ...

    Highlights color multiplier (ASC-CDL "gain"). Default: white (no change).

    gamma: Color = ...

    Midtones color power (ASC-CDL "gamma"). Default: white (no change). Not to be confused with ToneMappingElement.gamma, which is the scalar display gamma correction.

    lift: Color = ...

    Shadows color offset (ASC-CDL "lift"). Default: black (no change).

    saturation: number = 1.0

    Saturation via luma mix (default: 1.0, no change; 0 = grayscale).

    temperature: number = 0.0

    Warm/cool white-balance approximation, -1 (cool) to 1 (warm). Default: 0.0.

    tint: number = 0.0

    Green/magenta white-balance approximation, -1 (green) to 1 (magenta). Default: 0.0.

    type: COLOR_GRADING = PostProcessingEffectType.COLOR_GRADING

    Unique string identifier for the effect.