Example #1
0
 public PerlinNoise( Random rand, int octaves ) {
     this.octaves = octaves;
     noiseLayers = new ImprovedNoise[octaves];
     for( int i = 0; i < octaves; i++ ) {
         noiseLayers[i] = new ImprovedNoise( rand );
     }
 }
Example #2
0
 public PerlinNoise(Random rand, int octaves)
 {
     this.octaves = octaves;
     noiseLayers  = new ImprovedNoise[octaves];
     for (int i = 0; i < octaves; i++)
     {
         noiseLayers[i] = new ImprovedNoise(rand);
     }
 }