Implemented tessellation for terrain