From 31eca05faf1d46bed6cd578fb1cc60d8c156f349 Mon Sep 17 00:00:00 2001 From: adrien <adrien@malingrey.fr> Date: Thu, 26 Sep 2024 09:02:08 +0200 Subject: [PATCH] two faces --- jsm/Tetrominoes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index a1321f0..34040ad 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -154,11 +154,11 @@ class Mino extends THREE.Object3D { } static { new THREE.TextureLoader().load("images/sprites.png", (texture) => { - this.materials.Rétro[0] = new TileMaterial({ + this.materials.Rétro[0] = this.materials.Rétro[2] = new TileMaterial({ color: 0xd0d4c1, map: texture, bumpMap: texture, - bumpScale: 4, + bumpScale: 5, roughness: 0.25, metalness: 0.8, transparent: true, @@ -470,7 +470,7 @@ class Playfield extends THREE.Group { color: 0xd0d4c1, map: retroEdgeTexture, bumpMap: retroEdgeTexture, - bumpScale: 0.5, + bumpScale: 0.3, roughness: 0.25, metalness: 0.8, })