Esempio n. 1
0
 public NoiseGenerator(int seed, float frequency)
 {
     _hash1 = new XXHash(seed);
     _hash2 = new XXHash(seed ^ 0x1327495a);
     _hash3 = new XXHash(seed ^ 0x3cbe84f2);
     _fractal = 2;
     _frequency = frequency;
     _time = 0;
 }
Esempio n. 2
0
 public NoiseGenerator(int seed, float frequency)
 {
     _hash1     = new XXHash(seed);
     _hash2     = new XXHash(seed ^ 0x1327495a);
     _hash3     = new XXHash(seed ^ 0x3cbe84f2);
     _fractal   = 2;
     _frequency = frequency;
     _time      = 0;
 }
Esempio n. 3
0
 public NoiseGenerator(float frequency)
 {
     _hash1 = XXHash.RandomHash;
     _hash2 = XXHash.RandomHash;
     _hash3 = XXHash.RandomHash;
     _fractal = 2;
     _frequency = frequency;
     _time = 0;
 }
Esempio n. 4
0
 public NoiseGenerator(float frequency)
 {
     _hash1     = XXHash.RandomHash;
     _hash2     = XXHash.RandomHash;
     _hash3     = XXHash.RandomHash;
     _fractal   = 2;
     _frequency = frequency;
     _time      = 0;
 }