implement sun

This commit is contained in:
LabyStudio
2022-02-13 00:52:32 +01:00
parent 9e0045f807
commit 77fd18af31
17 changed files with 188 additions and 24 deletions
@@ -5,7 +5,7 @@ window.BlockRenderer = class {
constructor(worldRenderer) {
this.worldRenderer = worldRenderer;
this.tessellator = new Tessellator();
this.tessellator.bindTexture(worldRenderer.terrainTexture);
this.tessellator.bindTexture(worldRenderer.textureTerrain);
}
renderBlock(world, block, x, y, z) {