diff --git a/jsm/TetraGUI.js b/jsm/TetraGUI.js index 2724ff0..544d60d 100644 --- a/jsm/TetraGUI.js +++ b/jsm/TetraGUI.js @@ -43,19 +43,23 @@ export class TetraGUI extends GUI { texture.repeat.set(2, 1) }) loadingManager.onLoad = function() { - scene.vortex.darkCylinder.material.map = darkTexture - scene.vortex.darkCylinder.material.opacity = 0.055 - scene.vortex.colorFullCylinder.material.map = colorfullTexture - scene.vortex.colorFullCylinder.material.opacity = 0.7 + scene.vortex.darkCylinder.material.map = darkTexture + scene.vortex.darkCylinder.material.opacity = 0.055 + scene.vortex.colorFullCylinder.material.map = colorfullTexture + scene.vortex.colorFullCylinder.material.opacity = 0.6 - scene.vortex.globalRotation = 0.028 - scene.vortex.darkTextureRotation = 0.005 - scene.vortex.darkMoveForward = 0.009 + scene.vortex.globalRotation = 0.028 + scene.vortex.darkTextureRotation = 0.005 + scene.vortex.darkMoveForward = 0.009 scene.vortex.colorFullTextureRotation = 0.006 - scene.vortex.colorFullMoveForward = 0.015 + scene.vortex.colorFullMoveForward = 0.015 - scene.ambientLight.intensity = 1 + scene.ambientLight.intensity = 1 scene.directionalLight.intensity = 1 + + Mino.material.opacity = 0.6 + Mino.material.roughness = 0.4 + Mino.material.metalness = 0.95 } break case "Espace": @@ -71,9 +75,9 @@ export class TetraGUI extends GUI { }) loadingManager.onLoad = function() { scene.vortex.darkCylinder.material.map = darkTexture - scene.vortex.darkCylinder.material.opacity = 0.2 + scene.vortex.darkCylinder.material.opacity = 0.055 scene.vortex.colorFullCylinder.material.map = colorfullTexture - scene.vortex.colorFullCylinder.material.opacity = 0.2 + scene.vortex.colorFullCylinder.material.opacity = 0.6 scene.vortex.globalRotation = 0.028 scene.vortex.darkTextureRotation = 0.006 @@ -81,8 +85,8 @@ export class TetraGUI extends GUI { scene.vortex.colorFullTextureRotation = 0.006 scene.vortex.colorFullMoveForward = 0.02 - scene.ambientLight.intensity = 2 - scene.directionalLight.intensity = 3 + scene.ambientLight.intensity = 0.6 + scene.directionalLight.intensity = 1 } break } @@ -162,7 +166,7 @@ export class TetraGUI extends GUI { side: THREE.DoubleSide, transparent: true, opacity: 0.6, - roughness: 0.4, + roughness: 0.06, metalness: 0.95, }) break diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 2607711..be71d5f 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -42,7 +42,7 @@ export class Vortex extends THREE.Group { texture.repeat.set(2, 1) }), blending: THREE.AdditiveBlending, - opacity: 0.7 + opacity: 0.6 }) ) this.add(this.colorFullCylinder) diff --git a/jsm/gamelogic.js b/jsm/gamelogic.js index 5aa0244..8e133f0 100644 --- a/jsm/gamelogic.js +++ b/jsm/gamelogic.js @@ -121,7 +121,7 @@ class Mino extends THREE.Object3D { side: THREE.DoubleSide, transparent: true, opacity: 0.6, - roughness: 0.4, + roughness: 0.06, metalness: 0.95, }) this.mesh = new InstancedMino(minoGeometry, minoMaterial, 2*ROWS*COLUMNS)