implement world generator, frustum culling and rebuild queue

This commit is contained in:
LabyStudio
2022-02-01 10:17:03 +01:00
parent ed49c9f776
commit a3c21b3727
16 changed files with 481 additions and 35 deletions
+3 -3
View File
@@ -11,6 +11,9 @@ window.Minecraft = class {
this.frames = 0;
this.lastTime = Date.now();
// Create all blocks
Block.create();
// Create world
this.world = new World();
this.worldRenderer.scene.add(this.world.group);
@@ -23,9 +26,6 @@ window.Minecraft = class {
}
init() {
// Create all blocks
Block.create();
// Start render loop
this.running = true;
this.requestNextFrame();