We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents3f9ff6e +c25da3c commit4456658Copy full SHA for 4456658
src/main/java/com/generation/SimplexNoise.java
@@ -36,7 +36,7 @@ public SimplexNoise(int largestFeature, double persistence, long seed) {
36
37
this.octaves[index] =newSimplexNoiseOctave(random.nextInt());
38
this.frequencys[index] =Math.pow(2,index);
39
-this.amplitudes[index] =Math.pow(persistence, (double)octaveCount -index);
+this.amplitudes[index] =Math.pow(persistence, (double)octaveCount -index);
40
}
41
42
@@ -103,7 +103,7 @@ public double getNoise(int x, int y, int z) {
103
for (intindex =0;index <this.octaves.length;index++) {
104
105
doublefrequency =Math.pow(2,index);
106
-doubleamplitude =Math.pow(this.persistance, (double)this.octaves.length -index);
+doubleamplitude =Math.pow(this.persistance, (double)this.octaves.length -index);
107
108
result +=this.octaves[index].noise(x /frequency,y /frequency,z /frequency) *amplitude;
109