Tone Mapping
Overview
Tone mapping is the process of converting High Dynamic Range (HDR) images into Low Dynamic Range (LDR) ones suitable for standard displays.
Zephyr3D's tone mapping system uses the ACES (Academy Color Encoding System) to ensure physically‑based color response and natural brightness compression.
Properties
camera.toneMap:boolean— Enables or disables tone mapping.camera.toneMapExposure:number— Controls exposure compensation (brightness level).
Example
// Enable tone mapping
camera.toneMap = true;
// Adjust exposure
camera.toneMapExposure = 1.5;How exposure is controlled depends on the lighting mode. The
toneMapExposureapproach above applies to the defaultlegacylighting mode. In physical lighting mode, exposure is derived from the camera's aperture, shutter speed and ISO (the read-onlycamera.exposure),toneMapExposureis ignored, and tone mapping only applies the ACES curve.
Summary
Tone mapping ensures that HDR rendering results are accurately compressed for display devices without losing highlight or shadow details.
The ACES‑based pipeline preserves wide dynamic range and cinematic color fidelity, making it ideal for realistic rendering or filmic visual styles.