diff --git a/jsm/gamelogic.js b/jsm/gamelogic.js index 5760bc8..8a5ee2a 100644 --- a/jsm/gamelogic.js +++ b/jsm/gamelogic.js @@ -241,13 +241,14 @@ class Ghost extends Tetromino { } } -/*Ghost.prototype.minoMaterial = new THREE.MeshBasicMaterial({ +Ghost.prototype.minoMaterial = new THREE.MeshStandardMaterial({ envMap: environnement, - reflectivity: 0.9, + metalness: 0.9, + roughness: 0.2, transparent: true, opacity: 0.15, side: THREE.DoubleSide, -})*/ +}) Ghost.prototype.freeColor = new THREE.Color(COLORS.GHOST) Ghost.prototype.minoesPosition = [ [P(0, 0, 0), P(0, 0, 0), P(0, 0, 0), P(0, 0, 0)],