示例#1
0
 public Terrain(GraphicsDevice graphicsDevice, Camera camera, string heightMapFile, string effectFile, string textureFile, int width, int height)
     : this(graphicsDevice, camera, width, height)
 {
     terrainIndexer     = new TerrainIndexer(this, camera, graphicsDevice);
     this.heightMapFile = heightMapFile;
     this.effectFile    = effectFile;
     this.textureFile   = textureFile;
 }
示例#2
0
 public Terrain(GraphicsDevice graphicsDevice, Camera camera, Texture2D heightMap, string heightMapFile, string effectFile, string textureFile)
     : this(graphicsDevice, camera, heightMap)
 {
     terrainIndexer     = new TerrainIndexer(this, camera, graphicsDevice);
     this.heightMapFile = heightMapFile;
     this.effectFile    = effectFile;
     this.textureFile   = textureFile;
 }