Game dev
Saved & recent

Height map

Related terms: displacement map, parallax mapping

A grayscale texture where brightness means height. White is high, black is low. Terrain is often stored this way.

Displacement uses it to really move vertices. Parallax mapping uses it to shift the texture lookup so a flat surface seems to have depth. A normal map can be generated from a height map.

Further reading
LearnOpenGL: Parallax Mapping
0 1 height height map sample peak height displaced surface
Normalized heights run from 0 (black) to 1 (white). The image and terrain share 169 samples; gold marks the same sample and its vertical displacement. Displacement moves vertices, while normal mapping changes lighting normals without moving the geometry.

View in the full Game dev collection