From 02725494cdb15692ecf8c1261e67add6a6f27474 Mon Sep 17 00:00:00 2001 From: adrien Date: Sat, 15 Jul 2023 22:51:59 +0200 Subject: [PATCH] ghost material --- jsm/gamelogic.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)],