Reinhard tone mappers
Two variants of the classic Reinhard operator are included. Both are fast and parameter-light, which suits cases where you need a neutral, predictable tone response without tuning.
Reinhard - Jodie
A parameter-free variant that blends luminance-based and per-channel Reinhard to avoid color fringing at high values.
Formula:
float l = luminance(v);
float3 tv = v / (1.0 + v);
return lerp(v / (1.0 + l), tv, tv);
- The luminance path (
v / (1 + l)) preserves hue but can look washed out. - The per-channel path (
v / (1 + v)) is more saturated but can hue-shift. - Blending with
tv(the per-channel result) gives a balanced compromise.
Settings: None.

Reinhard - Extended
The original Reinhard 2002 formulation (Equation 4 from "Photographic Tone Reproduction for Digital Images") with a configurable white point. An input equal to Lw maps to pure white, and anything brighter clips.
Formula:
float3 numerator = v * (1.0 + v / (Lw * Lw));
return numerator / (1.0 + v);
Settings reference
| Setting | Default | Range | Description |
|---|---|---|---|
| Max White (Lw) | 4.0 | > 0 | The scene value that maps to white. Higher values compress highlights more and give a darker image. |
Tuning tips:
Lw = 0.1: brightest image. Values above 0.1 are pushed up and clip to white.Lw = 0.5: still brighter than the scene, with clipping above 0.5.Lw = 1.0: the formula reduces tov, so the output equals the input and anything above 1 clips. No compression.Lw > 1(the default is4.0): highlights are compressed. The higher the value, the closer the curve gets to plain Reinhard (v / (1 + v)).
warning
Avoid values close to 0: the curve divides by Lw², so the image blows out to white.

When to use Reinhard
- Legacy or stylized projects that want a classic "game" look
- Very fast rendering contexts where shader complexity matters
- As a neutral reference when debugging tone mapping in a scene
Reference
Reinhard 2002: "Photographic Tone Reproduction for Digital Images", Erik Reinhard et al., SIGGRAPH 2002.