Update src/main/java/com/generation/SimplexNoise.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
parent
5358f8ddc9
commit
c25da3ce97
@ -103,7 +103,7 @@ public class SimplexNoise {
|
||||
for (int index = 0; index < this.octaves.length; index++) {
|
||||
|
||||
double frequency = Math.pow(2, index);
|
||||
double amplitude = Math.pow(this.persistance, (double)this.octaves.length - index);
|
||||
double amplitude = Math.pow(this.persistance, (double) this.octaves.length - index);
|
||||
|
||||
result += this.octaves[index].noise(x / frequency, y / frequency, z / frequency) * amplitude;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user