use bulk drawing

This commit is contained in:
LabyStudio
2022-01-31 20:24:53 +01:00
parent 293a6d9553
commit af525c88fa
3 changed files with 16 additions and 3 deletions
@@ -10,9 +10,7 @@ window.BlockRenderer = class {
let boundingBox = new BoundingBox(0.0, 0.0, 0.0, 1.0, 1.0, 1.0);
for (let face = 0; face < 6; face++) {
this.tessellator.startDrawing();
this.renderFace(world, typeId, boundingBox, face, x, y, z);
this.tessellator.draw(group);
}
}