From fef08f64e8761dbb17ee388e557891795aeb7793 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 1 Oct 2024 10:59:43 +0200 Subject: [PATCH] tweaks --- jsm/Tetrominoes.js | 6 +++--- jsm/Vortex.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index 4ca2311..d9d26e8 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -157,7 +157,7 @@ class Mino extends THREE.Object3D { side: THREE.DoubleSide, transparent: true, opacity: 0.7, - roughness: 0.5, + roughness: 0.6, metalness: 1, }), Espace: new THREE.MeshStandardMaterial({ @@ -175,7 +175,7 @@ class Mino extends THREE.Object3D { color: 0xd0d4c1, map: texture, bumpMap: texture, - bumpScale: 1.5, + bumpScale: 2, roughness: 0.25, metalness: 0.8, transparent: true, @@ -209,7 +209,7 @@ class Mino extends THREE.Object3D { super() this.color = color this.offset = offset - this.velocity = P(50 - 100 * Math.random(), 70 - 100 * Math.random(), 50 - 100 * Math.random()) + this.velocity = P(50 - 100 * Math.random(), 60 - 100 * Math.random(), 50 - 100 * Math.random()) this.rotationAngle = P(Math.random(), Math.random(), Math.random()).normalize() this.angularVelocity = 5 - 10 * Math.random() this.constructor.meshes.add(this) diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 669d3ac..c5e6062 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -47,7 +47,7 @@ export class Vortex extends THREE.Group { texture.repeat.set(1, 2) this.darkCylinder.material.map = texture }) - this.darkCylinder.material.opacity = 0.17 + this.darkCylinder.material.opacity = 0.1 new THREE.TextureLoader(this.loadingManager).load("./images/plasma2.jpg", texture => { texture.wrapS = THREE.RepeatWrapping @@ -55,7 +55,7 @@ export class Vortex extends THREE.Group { texture.repeat.set(2, 2) this.colorFullCylinder.material.map = texture }) - this.colorFullCylinder.material.opacity = 0.7 + this.colorFullCylinder.material.opacity = 0.5 this.globalRotation = 0.028 this.darkTextureRotation = 0.005