@pixi/3d
    Preparing search index...

    Type Alias ToneMapping

    ToneMapping: "aces" | "reinhard" | "uncharted2" | "none" | "custom"

    The tone curve and display encode a view applies to what it draws; see View3D#toneMapping

    • 'none' (default): the sRGB encode alone. The scene shows as lit, and anything brighter than 1 clips.
    • 'aces', 'reinhard' and 'uncharted2': a filmic curve that rolls off bright light, then the sRGB encode. Use one, usually 'aces', when strong lights or a bright environment push lit colour past 1.
    • 'custom': neither. The view outputs raw linear light, for a post effect that does its own tone mapping and encoding. Leave that effect at the default 'beforeToneMapping' stage, so it reads the scene in float with brightness above 1 intact.

    It applies to every material, lit or unlit, so unlit art such as sprites, particles and flat materials matches pixi 2D under 'none' at exposure 1, and a filmic curve shifts it too.

    const view = new View3D({ width, height, toneMapping: 'reinhard' });

    view.toneMapping = 'aces';