Generate triangles on init
This commit is contained in:
1 parent
4a6da087b0
commit
dadb46b273
1 file changed
+1
-1
+1
-1
@@ -73,7 +73,7 @@
|
|||||||
this.offsetZ = 0;
|
this.offsetZ = 0;
|
||||||
this.triangles = [];
|
this.triangles = [];
|
||||||
this.waterLevel = 20;
|
this.waterLevel = 20;
|
||||||
this.update();
|
this.generateTriangles();
|
||||||
}
|
}
|
||||||
|
|
||||||
generateHeight(x, z) {
|
generateHeight(x, z) {
|
||||||
|
|||||||
Reference in new issue
Block a user