Reinhard photographic tone reproduction
The classic global operator x/(1+x), scaled by the scene's log-average luminance to a chosen key value, plus an extended form with a white point; simple, monotonic and well behaved.
Also known as Reinhard operator
In the family Post-processing, color & imaging, tonemapping
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | renderer.toneMapping = THREE.ReinhardToneMapping docs |
| Babylon.js 9.38.0 | Built in | new BABYLON.TonemapPostProcess('t', BABYLON.TonemappingOperator.Reinhard, exposure, camera) docs |
| Godot 4.7 | Built in | Environment.tonemap_mode = Environment.TONE_MAPPER_REINHARDT docs |
| Unity | None found | HDRP exposes Reinhard only as an HDR-output range-reduction curve, not a SDR tonemapper. |
| Unreal 5.7 | None found | Unreal replaced legacy Reinhard tonemapping with the ACES Filmic tonemapper. |
| Blender 5.2 | Built in | Compositor > Add > Color > Adjust > Tone Map, Type = Rh Simple docs Rh Simple is a simplified Reinhard operator; R/D Photoreceptor is Reinhard-Devlin. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Reinhard et al. borrow the zone system from photography. First, the log-average (geometric mean) luminance of the image is computed and the image is scaled so that this average maps to a key value, like 0.18 for a mid-tone scene. The global curve L/(1+L) then compresses the range into [0,1). The extended version divides by a white point, L(1+L/Lw^2)/(1+L), so values at Lw map to exactly 1. The paper also describes a local dodge-and-burn variant using multi-scale blurred luminance, though the global form is the one used in real-time. Applied per channel the curve desaturates highlights; applied to luminance only, hues are preserved but colours can go out of gamut.
When to choose it
Reach for it when
- hdr values need squeezing to displayable range simply
- want an invertible predictable tone curve
- need debug view of hdr with no contrast boost
- taa resolve needs well-behaved luminance weighting
Choose it when you want a simple, invertible, predictable curve, for example as a debug view or for TAA's luminance-weighted resolve.
Prefer Hable filmic (Uncharted 2) tonemapping for more contrast and a toe, ACES filmic tonemapping for film response, and Khronos PBR Neutral tone mapper for colour accuracy. Combine with Auto exposure from luminance histogram to supply the key.
Field marks
- Low-contrast, washed-out blacks because it lacks a toe
- Per-channel application desaturates and shifts hue in bright colours
- Highlights compress hard unless a white point is set
- Luminance-only variant can push saturated colours out of gamut
Presets
Three HDR exposure ramps (grey, orange, cyan). Left: clamp. Right: extended Reinhard on luminance
{
"LW": 16
}Show GLSL (18 lines)
float hash(vec2 c){uvec2 u=uvec2(ivec2(floor(c)));uint h=u.x*1597334673u^u.y*3812015801u;h^=h>>15;h*=2246822519u;h^=h>>13;h*=3266489917u;h^=h>>16;return float(h)*(1./4294967296.);}
float lum(vec3 c){return dot(c,vec3(.2126,.7152,.0722));}
vec3 gam(vec3 c){return pow(clamp(c,0.,1.),vec3(1./2.2));}
const float LW=16.0; // P
void mainImage(out vec4 fragColor,in vec2 fragCoord){
vec2 uv=(fragCoord-.5*iResolution.xy)/iResolution.y;bool R=uv.x>0.;vec2 q=vec2(uv.x+(R?-.25:.25),uv.y);
float e=exp2(mix(-4.,5.,clamp((q.x+.25)/.5,0.,1.)));
int row=int(clamp(floor((uv.y+.5)*3.),0.,2.));
vec3 base=row==0?vec3(.1,.7,1.):(row==1?vec3(1.,.45,.12):vec3(1.));
vec3 c=base*e*.3;
vec3 col;
if(!R) col=gam(c);
else{float L=lum(c),Ld=L*(1.+L/(LW*LW))/(1.+L);col=gam(c*Ld/max(L,1e-5));}
if(fract((uv.y+.5)*3.)<.01)col=vec3(.1);
if(abs(uv.x)<.0015)col=vec3(1.);
fragColor=vec4(col,1.);
}Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| reinhard-tonemapping-specimen | Tesla T4 1920x1080 | 1.16× baseline (feather) · 0.038 ms / 0.040 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| reinhard-tonemapping-specimen | NVIDIA L4 1920x1080 | 1.01× baseline (feather) · 0.016 ms / 0.016 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| reinhard-tonemapping-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 1.00× baseline (feather) · 0.029 ms / 0.029 ms · 1.3× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
Crosses
- Auto exposure from luminance histogram: The measured log-average luminance sets Reinhard's key scaling.
Sources
- primaryErik Reinhard, Michael Stark, Peter Shirley, James Ferwerda (2002). Photographic tone reproduction for digital images. Proceedings of the 29th annual conference on Computer graphics and interactive techniques.Verified via crossref · 2026-11-29doi:10.1145/566570.566575
- implementationmrdoob (2010). mrdoob/three.js. JavaScript 3D Library.GitHub API · license MIT · 2026-11-29