Reduce wave amplitude
This commit is contained in:
1 parent
96dedf252d
commit
415f188ab5
1 file changed
+4
-4
+4
-4
@@ -45,10 +45,10 @@
|
||||
|
||||
function getHeight(x, y) {
|
||||
var h = 0;
|
||||
h += Math.sin(x * 0.05) * 8;
|
||||
h += Math.cos(y * 0.05) * 8;
|
||||
h += Math.sin(x * 0.1 + y * 0.05) * 4;
|
||||
h += Math.cos(y * 0.1 - x * 0.05) * 3;
|
||||
h += Math.sin(x * 0.02) * 4;
|
||||
h += Math.cos(y * 0.02) * 4;
|
||||
h += Math.sin(x * 0.04 + y * 0.02) * 2;
|
||||
h += Math.cos(y * 0.04 - x * 0.02) * 1.5;
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user