Exemplo n.º 1
0
 public HeightMap(int size)
 {
     Size = size;
     Heights = new float[Size, Size];
     Perlin = new PerlinGenerator(new Random().Next(-50000, 50000));
     AddPerlinNoise(6f);
     Perturb(10, 10);
     for (int i = 0; i < 10; i++)
     {
         Erode(8);
     }
     Smoothen();
 }
Exemplo n.º 2
0
 public HeightMap(int size)
 {
     Size    = size;
     Heights = new float[Size, Size];
     Perlin  = new PerlinGenerator(new Random().Next(-50000, 50000));
     AddPerlinNoise(6f);
     Perturb(10, 10);
     for (int i = 0; i < 10; i++)
     {
         Erode(8);
     }
     Smoothen();
 }