Exemplo n.º 1
0
 public void ExportTile(TilePath tile, string name)
 {
     heightmapGS  = tile.LoadHeightGS();
     heightmapRGB = tile.LoadHeightRGB();
     texture      = tile.LoadTexture();
     ExportTile(heightmapGS, heightmapRGB, texture, name);
 }
Exemplo n.º 2
0
 private void LoadTile(TilePath tile)
 {
     if (tile.IsValid())
     {
         terrainLoader.heightmap = tile.LoadHeightRGB();
         terrainLoader.texture   = tile.LoadTexture();
         terrainLoader.rgbMap    = true;
         terrainLoader.Init();
     }
     else
     {
         Debug.Log("Unable to load tile");
         Debug.Log(tile.heightGS);
         Debug.Log(tile.heightRGB);
         Debug.Log(tile.texture);
     }
 }