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
@@ -44,6 +44,12 @@ window.Tessellator = class {
this.colors.push(this.blue);
}
transformBrightness(brightness) {
for (let i in this.colors) {
this.colors[i] *= brightness;
}
}
draw(group) {
let geometry = new THREE.BufferGeometry();
geometry.setAttribute('position', new THREE.BufferAttribute(new Float32Array(this.vertices), 3));