ImprovedNoise
const noise = new ImprovedNoise(new LegacyRandom(BigInt(6203)))
const value = noise.sample(x / 32, y / 32, 0)
Improved (39ms)
PerlinNoise
const noise = new PerlinNoise(new LegacyRandom(BigInt(6203)), -6, [1, 1])
const value = noise.sample(x, y, 0)
Perlin -6, [1, 1] (65ms)
Perlin -5, [1, 1, 1, 1] (97ms)
Perlin -5, [1, 0, 2, 3] (122ms)
Perlin -4, [1, 1] (141ms)
NormalNoise
const params = { firstOctave: -6, amplitudes: [1, 1] }
const noise = new NormalNoise(new LegacyRandom(BigInt(6203)), params)
const value = noise.sample(x, y, 0)
Normal -6, [1, 1] (178ms)
Normal -5, [1, 1] (213ms)
Normal -5, [1, 1, 1, 1] (278ms)
BlendedNoise
const noise = new BlendedNoise(new LegacyRandom(BigInt(6203)), 1, 1, 80, 160, 4)
const value = noise.sample(x, y, 0)
Blended (402ms)
SimplexNoise
Simplex (412ms)
PerlinSimplexNoise
PerlinSimplex [-3, -2, -1] (430ms)