Improved Perlin Noise implementation, based on reference Java implementation (Copyright 2002 Ken Perlin). Original: http://mrl.nyu.edu/~perlin/noise/
Esempio n. 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 );
     }
 }
Esempio n. 2
0
 public PerlinNoise([NotNull] Random rand, int octaves) {
     if (rand == null) throw new ArgumentNullException("rand");
     this.octaves = octaves;
     noiseLayers = new ImprovedNoise[octaves];
     for (int i = 0; i < octaves; i++) {
         noiseLayers[i] = new ImprovedNoise(rand);
     }
 }
Esempio n. 3
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);
     }
 }
Esempio n. 4
0
 public PerlinNoise([NotNull] Random rand, int octaves)
 {
     if (rand == null)
     {
         throw new ArgumentNullException("rand");
     }
     this.octaves = octaves;
     noiseLayers  = new ImprovedNoise[octaves];
     for (int i = 0; i < octaves; i++)
     {
         noiseLayers[i] = new ImprovedNoise(rand);
     }
 }