implement classic lightning

This commit is contained in:
LabyStudio
2022-02-01 12:55:56 +01:00
parent b4b6f4a762
commit 76e7f9fd84
@@ -47,7 +47,7 @@ window.BlockRenderer = class {
// Classic lightning
if (BlockRenderer.CLASSIC_LIGHTNING) {
let brightness = 0.9 / 15.0 * 15 + 0.1;
let brightness = 0.9 / 15.0 * world.getLightAt(minX + face.x, minY + face.y, minZ + face.z) + 0.1;
let color = brightness * face.getShading();
this.tessellator.setColor(color, color, color);
}