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