public GeoclipmappedMesh(Device device, int resolution) { this.device = device; this.resolution = resolution; centerblock = MeshStreamConcretizers.GetMesh(device, VertexFormat.Position | VertexFormat.Texture1, Meshes.IndexedGrid(Vector3.Zero, new Vector2(resolution * 2 + 1, resolution * 2 + 1), resolution * 2 + 1, resolution * 2 + 1, Vector2.Zero, Vector2.Zero)); block = MeshStreamConcretizers.GetMesh(device, VertexFormat.Position | VertexFormat.Texture1, Meshes.IndexedGrid(Vector3.Zero, new Vector2(resolution, resolution), resolution, resolution, Vector2.Zero, Vector2.Zero)); ringFixUp = MeshStreamConcretizers.GetMesh(device, VertexFormat.Position | VertexFormat.Texture1, Meshes.IndexedGrid(Vector3.Zero, new Vector2(2, resolution), 2, resolution, Vector2.Zero, Vector2.Zero)); interiorTrim = MeshStreamConcretizers.GetMesh(device, VertexFormat.Position | VertexFormat.Texture1, Meshes.IndexedGrid(Vector3.Zero, new Vector2(2 * resolution + 2, 1), 2 * resolution + 2, 1, Vector2.Zero, Vector2.Zero)); }