From b0dbb06dae079f2128d39e108003fea7b30bfec9 Mon Sep 17 00:00:00 2001
From: adrien <adrien@malingrey.fr>
Date: Mon, 17 Jul 2023 00:58:34 +0200
Subject: [PATCH] tweaks

---
 jsm/TetraGUI.js   | 8 ++++----
 jsm/TetraScene.js | 4 ++--
 jsm/Vortex.js     | 6 +++---
 jsm/gamelogic.js  | 2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/jsm/TetraGUI.js b/jsm/TetraGUI.js
index efdbdf3..842c213 100644
--- a/jsm/TetraGUI.js
+++ b/jsm/TetraGUI.js
@@ -45,18 +45,18 @@ export class TetraGUI extends GUI {
                     })
                     loadingManager.onLoad = function() {
                         scene.vortex.darkCylinder.material.map = darkTexture
-                        scene.vortex.darkCylinder.material.opacity = 0.1
+                        scene.vortex.darkCylinder.material.opacity = 0.035
                         scene.vortex.colorFullCylinder.material.map = colorfullTexture
-                        scene.vortex.colorFullCylinder.material.opacity = 0.7
+                        scene.vortex.colorFullCylinder.material.opacity = 0.6
                         
                         scene.vortex.globalRotation = 0.028
                         scene.vortex.darkTextureRotation = 0.005
                         scene.vortex.darkMoveForward = 0.009
                         scene.vortex.colorFullTextureRotation = 0.006
-                        scene.vortex.colorFullMoveForward = 0.013
+                        scene.vortex.colorFullMoveForward = 0.015
 
                         scene.ambientLight.intensity = 1
-                        scene.directionalLight.intensity = 5
+                        scene.directionalLight.intensity = 1
                     }
                 break
                 case "Espace":
diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js
index 595a875..72b3bc3 100644
--- a/jsm/TetraScene.js
+++ b/jsm/TetraScene.js
@@ -15,8 +15,8 @@ export class TetraScene extends THREE.Scene {
         this.ambientLight = new THREE.AmbientLight(0xffffff, 1)
         this.add(this.ambientLight)
         
-        this.directionalLight = new THREE.DirectionalLight(0xffffff, 5)
-        this.directionalLight.position.set(5, 40, 20)
+        this.directionalLight = new THREE.DirectionalLight(0xffffff, 1)
+        this.directionalLight.position.set(5, 0, 20)
         this.add(this.directionalLight)
 
 
diff --git a/jsm/Vortex.js b/jsm/Vortex.js
index aebeb90..4d9df02 100644
--- a/jsm/Vortex.js
+++ b/jsm/Vortex.js
@@ -11,7 +11,7 @@ export class Vortex extends THREE.Group {
         this.darkMoveForward = 0.009
         
         this.colorFullTextureRotation = 0.006
-        this.colorFullMoveForward = 0.013
+        this.colorFullMoveForward = 0.015
 
         const commonCylinderGeometry = new THREE.CylinderGeometry(35, 35, 500, 12, 1, true)
 
@@ -27,7 +27,7 @@ export class Vortex extends THREE.Group {
                     texture.repeat.set(1, 1)
                 }),
                 blending: THREE.AdditiveBlending,
-                opacity: 0.1
+                opacity: 0.035
             })
         )
         this.add(this.darkCylinder)
@@ -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 8a5ee2a..2cbb358 100644
--- a/jsm/gamelogic.js
+++ b/jsm/gamelogic.js
@@ -90,7 +90,7 @@ let minoMaterial = new THREE.MeshStandardMaterial({
     transparent: true,
     opacity: 0.6,
     roughness: 0.1,
-    metalness: 0.9,
+    metalness: 0.95,
 })
 /*
 let minoMaterial = new THREE.MeshPhysicalMaterial({