A
common method of modeling terrain is the use of a
heightmap.
A
heightmap provides a function indicating a height value for each position along
a plane. In our graphics template, this
function would have the form y = f(x, z).
The
heightmap usually is stored as a 2D image, where the colour of each pixel
represents a displacement of a point on a plane.