fix render glitches

This commit is contained in:
LabyStudio
2022-01-31 21:18:20 +01:00
parent af525c88fa
commit c63bf36bca
8 changed files with 66 additions and 30 deletions
@@ -27,8 +27,6 @@ window.ChunkSection = class {
this.dirty = false;
this.group.clear();
renderer.blockRenderer.tessellator.startDrawing();
for (let x = 0; x < ChunkSection.SIZE; x++) {
for (let y = 0; y < ChunkSection.SIZE; y++) {
for (let z = 0; z < ChunkSection.SIZE; z++) {
@@ -44,8 +42,6 @@ window.ChunkSection = class {
}
}
}
renderer.blockRenderer.tessellator.draw(this.group);
}
getBlockAt(x, y, z) {
@@ -13,6 +13,8 @@ window.World = class {
this.setBlockAt(x, 0, z, 1);
}
}
this.setBlockAt(0, 1, -2, 2);
}
getChunkAtBlock(x, y, z) {