未验证 提交 c25da3ce 编写于 作者: A Abhijay Kumar 提交者: GitHub

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

Co-Authored-By: NLibin Yang <contact@yanglibin.info>
上级 5358f8dd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册