Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Module rendering/post-processing/tone-mapping

    Tone-mapping name ↔ THREE.ToneMapping mapping — the single source of truth for every consumer.

    The viewer names tone-mapping modes with strings ('ACES', 'AgX', …) because that is what travels through the GUI, localStorage, and the zarr viewer_config. THREE wants its own enum. That translation used to be re-implemented in four places (the GUI dropdown, the settings applier, the cinematic toggle, the post-processing resource builder) plus two hardcoded ?? THREE.ACESFilmicToneMapping fallbacks inside the mega-shader materials — five copies to keep in step with the renderingControls.defaults.toneMapping default. They now all route through this module.

    TONE_MAPPING_BY_NAME
    TONE_MAPPING_NAMES
    resolveToneMappingDefault
    toneMappingFromName
    ToneMappingName → ToneMappingName