Game dev
Saved & recent

Normal map

Related terms: bump map, tangent space

A texture that stores a normal in every texel instead of a color. The X, Y and Z of the direction are saved as red, green and blue. A normal pointing straight out is (0.5, 0.5, 1), which is why these maps look violet.

The shader uses the stored normal for lighting instead of the real one. A flat wall then catches light as if it had bumps and grooves, with no extra triangles. The outline of the model stays flat, which gives the trick away at steep angles.

Further reading
LearnOpenGL: Normal Mapping
Color onlyNormal mapLit with it
Move the pointer or use the light controls.

View in the full Game dev collection