Exemplo n.º 1
0
 public Terrain()
 {
     h         = Heuristics.DiagonalDistance2;
     _renderer = new TerrainRenderer(new Material {
         Ambient = Color.White, Diffuse = Color.White, Specular = new Color4(64.0f, 0, 0, 0), Reflect = Color.Black
     }, this);
 }
Exemplo n.º 2
0
 public WalkMap(TerrainRenderer terrainRenderer)
 {
     _terrainRenderer = terrainRenderer;
     UnwalkableSRV    = ShaderResourceView.FromFile(terrainRenderer._device, "textures/unwalkable.png");
     CreateWalkableTexture(
         terrainRenderer._terrain.Tiles,
         terrainRenderer._terrain.WidthInTiles,
         terrainRenderer._terrain.HeightInTiles
         );
 }
Exemplo n.º 3
0
        public Terrain() {
            h = Heuristics.DiagonalDistance2;
            _renderer = new TerrainRenderer(new Material { Ambient = Color.White, Diffuse = Color.White, Specular = new Color4(64.0f, 0, 0, 0), Reflect = Color.Black }, this);

        }
Exemplo n.º 4
0
 public WalkMap(TerrainRenderer terrainRenderer) {
     _terrainRenderer = terrainRenderer;
     UnwalkableSRV = ShaderResourceView.FromFile(terrainRenderer._device, "textures/unwalkable.png");
     CreateWalkableTexture(
         terrainRenderer._terrain.Tiles,
         terrainRenderer._terrain.WidthInTiles,
         terrainRenderer._terrain.HeightInTiles
     );
 }