make items darker in pause menu

This commit is contained in:
LabyStudio
2022-02-13 04:32:21 +01:00
parent bcdbe4240b
commit 6e46e5e838
4 changed files with 29 additions and 3 deletions
@@ -252,7 +252,7 @@ window.BlockRenderer = class {
}
}
renderGuiBlock(group, block, x, y, size) {
renderGuiBlock(group, block, x, y, size, brightness) {
this.tessellator.startDrawing();
let boundingBox = block.getBoundingBox(null, 0, 0, 0);
@@ -269,6 +269,9 @@ window.BlockRenderer = class {
break;
}
// Change brightness
this.tessellator.transformBrightness(brightness);
// Create mesh
let mesh = this.tessellator.draw(group);
mesh.geometry.center();