Exemple #1
0
        internal HeightMap(int seed, int size, TerrainSettings settings)
        {
            _HalfSize = size / 2;
             _Size = size;
             _Heights = new float[_Size, _Size];
             _Perlin = new PerlinNoise(seed);
             _Settings = settings;

             GenerateTerrain();
        }
Exemple #2
0
        internal HeightMap(int seed, int size, TerrainSettings settings)
        {
            _HalfSize = size / 2;
            _Size     = size;
            _Heights  = new float[_Size, _Size];
            _Perlin   = new PerlinNoise(seed);
            _Settings = settings;

            GenerateTerrain();
        }