Skip to content

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 ​

javascript
// Enable tone mapping  
camera.toneMap = true;  
// Adjust exposure  
camera.toneMapExposure = 1.5;

How exposure is controlled depends on the lighting mode. The toneMapExposure approach above applies to the default legacy lighting mode. In physical lighting mode, exposure is derived from the camera's aperture, shutter speed and ISO (the read-only camera.exposure), toneMapExposure is 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.

Released under the MIT License.