From 6ed614d536b7bb82f985f8a9b9caa461b581cbfa Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 27 Sep 2024 03:10:23 +0200 Subject: [PATCH] MeshStandardMaterial on Plasma --- jsm/TetraGUI.js | 3 ++- jsm/Tetrominoes.js | 14 ++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/jsm/TetraGUI.js b/jsm/TetraGUI.js index ccab83b..9cdd5e4 100644 --- a/jsm/TetraGUI.js +++ b/jsm/TetraGUI.js @@ -131,7 +131,8 @@ export class TetraGUI extends GUI { transparent: true, opacity: 0.7, roughness: 0.6, - metalness: 1, + ior: 1.8, + metalness: 0.6, sheen: 0, sheenRoughness: 1, specularIntensity: 1, diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index 6dfc1d5..067e976 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -132,19 +132,13 @@ class InstancedMino extends THREE.InstancedMesh { class Mino extends THREE.Object3D { static materials = { - Plasma: new THREE.MeshPhysicalMaterial({ + Plasma: new THREE.MeshStandardMaterial({ envMap: environment, side: THREE.DoubleSide, transparent: true, - opacity: 0.7, - roughness: 0.6, - ior: 1.8, - metalness: 0.6, - sheen: 0, - sheenRoughness: 1, - specularIntensity: 1, - thickness: 5, - transmission: 1, + opacity: 0.8, + roughness: 0.48, + metalness: 0.67, }), Espace: new THREE.MeshStandardMaterial({ envMap: environment,