Exemplo n.º 1
0
 public Terrain()
 {
     _tree = CreateTree();
     _chunkedLod = new ChunkedLod();
     _simpleMaterial = new SimpleMaterial();
     _simpleMaterial.Create();
     _normalDebugProgram = new NormalDebugProgram();
     _normalDebugProgram.Create();
     _cache = new TerrainChunkCache(new TerrainChunkFactory(), new ResourceAllocator(new OpenGlResourceFactory()));
 }
 public Terrain(IChunkedLod chunkedLod)
 {
     _tree           = CreateTree();
     _chunkedLod     = chunkedLod;
     _simpleMaterial = new SimpleMaterial();
     _simpleMaterial.Create();
     _normalDebugProgram = new NormalDebugProgram();
     _normalDebugProgram.Create();
     _cache = new TerrainChunkCache(new TerrainChunkFactory(), new ResourceAllocator(new OpenGlResourceFactory()));
 }