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 name ↔
THREE.ToneMappingmapping — 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 zarrviewer_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.ACESFilmicToneMappingfallbacks inside the mega-shader materials — five copies to keep in step with therenderingControls.defaults.toneMappingdefault. They now all route through this module.