terrain lod - working prototype - very ugly coded