Fractal-generated terrain in OpenGL, using the diamond-square algorithm