Adjusted terrain for flipping triangles and finding normals.