mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Fix normal noise amplitude 0 check
This commit is contained in:
@@ -33,9 +33,9 @@ export class NormalNoise {
|
||||
for (let i = 0; i < this.amplitudes.length; i += 1) {
|
||||
if (this.amplitudes[i] !== 0) {
|
||||
value += this.amplitudes[i] * this.noiseLevels[i].noise2D(this.wrap(x * inputF), this.wrap(y * inputF) + i) * valueF
|
||||
inputF *= 2
|
||||
valueF /= 2
|
||||
}
|
||||
inputF *= 2
|
||||
valueF /= 2
|
||||
}
|
||||
return 2 * value * this.valueFactor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user