示例#1
0
 public TerrainChunck(TerrainChunckSetting a, float[,] b, int c, int d)
 {
     Settings        = a;
     HeightmapValues = b;
     X = c;
     Z = d;
 }
示例#2
0
    // Use this for initialization
    void Start()
    {
        int           terrainLength = num * 4;
        var           settings      = new TerrainChunckSetting(num, num, terrainLength, height);
        TerrainChunck terrain       = new TerrainChunck(settings, getTxtHeightmap(), 0, 0);

        terrain.CreateTerrain();
    }