Improved Perlin Noise implementation, based on reference Java implementation (Copyright 2002 Ken Perlin). Original: http://mrl.nyu.edu/~perlin/noise/
Ejemplo 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 );
     }
 }
Ejemplo 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);
     }
 }
Ejemplo 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);
     }
 }
Ejemplo 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);
     }
 }