Game dev
Saved & recent

HDR

Also called: high dynamic range

Related terms: tone mapping, exposure

Rendering with brightness values far above 1. The sun really is thousands of times brighter than a lamp, and an HDR frame keeps that difference instead of clipping both to white.

A screen cannot show that range. Tone mapping applies a curve that compresses it into what the display can do while keeping detail in the highlights. Exposure scales the image first, like a camera adapting to a dark room.

Further reading
LearnOpenGL: HDR
0 1 2 4 6 8 0 0.25 0.5 0.75 1 scene intensity / relative units output / normalized linear light clipping Reinhard scene clipping Reinhard 0.5 0.50 0.33 1 1.00 0.50 2 1.00 0.67 4 1.00 0.80 8 1.00 0.89
Illustrative linear-light model at exposure 1: clipping uses y = min(L, 1), and simple Reinhard uses y = L/(1 + L). Output is normalized to a chosen 0โ€“1 range. Swatches interpolate in linear light between dark and bright theme neutrals; values are rounded. Display ranges and tone-mapping operators vary.

View in the full Game dev collection