Rendering procedurally generated terrain in OpenGL