Skip to content

Commit c25da3c

Browse files
abhijay94yanglbme
andauthored
Update src/main/java/com/generation/SimplexNoise.java
Co-Authored-By: Libin Yang <[email protected]>
1 parent 5358f8d commit c25da3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/generation/SimplexNoise.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public double getNoise(int x, int y, int z) {
103103
for (int index = 0; index < this.octaves.length; index++) {
104104

105105
double frequency = Math.pow(2, index);
106-
double amplitude = Math.pow(this.persistance, (double)this.octaves.length - index);
106+
double amplitude = Math.pow(this.persistance, (double) this.octaves.length - index);
107107

108108
result += this.octaves[index].noise(x / frequency, y / frequency, z / frequency) * amplitude;
109109
}

0 commit comments

Comments
 (0)