diff --git a/jsm/TetraGUI.js b/jsm/TetraGUI.js index b41e13f..e8ee53e 100644 --- a/jsm/TetraGUI.js +++ b/jsm/TetraGUI.js @@ -54,6 +54,9 @@ export class TetraGUI extends GUI { scene.vortex.darkMoveForward = 0.012 scene.vortex.colorFullTextureRotation = 0.006 scene.vortex.colorFullMoveForward = 0.016 + + scene.ambientLight.intensity = .5 + scene.directionalLight.intensity = 6 } break case "Espace": diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index c85cf14..c055656 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -12,7 +12,7 @@ export class TetraScene extends THREE.Scene { this.vortex = new Vortex(loadingManager) this.add(this.vortex) - this.ambientLight = new THREE.AmbientLight(0xffffff, .5) + this.ambientLight = new THREE.AmbientLight(0xffffff, .3) this.add(this.ambientLight) this.directionalLight = new THREE.DirectionalLight(0xffffff, 6) diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 53eae05..58143bc 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -8,10 +8,10 @@ export class Vortex extends THREE.Group { this.globalRotation = 0.028 this.darkTextureRotation = 0.006 - this.darkMoveForward = 0.012 + this.darkMoveForward = 0.011 this.colorFullTextureRotation = 0.006 - this.colorFullMoveForward = 0.016 + this.colorFullMoveForward = 0.09 const commonCylinderGeometry = new THREE.CylinderGeometry(35, 35, 500, 12, 1, true) @@ -21,7 +21,7 @@ export class Vortex extends THREE.Group { commonCylinderGeometry, new THREE.MeshLambertMaterial({ side: THREE.BackSide, - map: new THREE.TextureLoader(loadingManager).load("./images/plasma2.jpg", (texture) => { + map: new THREE.TextureLoader(loadingManager).load("./images/plasma.jpg", (texture) => { texture.wrapS = THREE.RepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping texture.repeat.set(2, 1) @@ -36,7 +36,7 @@ export class Vortex extends THREE.Group { commonCylinderGeometry, new THREE.MeshBasicMaterial({ side: THREE.BackSide, - map: new THREE.TextureLoader(loadingManager).load("./images/plasma.jpg", (texture) => { + map: new THREE.TextureLoader(loadingManager).load("./images/plasma2.jpg", (texture) => { texture.wrapS = THREE.RepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping texture.repeat.set(1, 1) diff --git a/jsm/gamelogic.js b/jsm/gamelogic.js index 0efe469..8450835 100644 --- a/jsm/gamelogic.js +++ b/jsm/gamelogic.js @@ -75,10 +75,10 @@ let minoMaterial = new THREE.MeshStandardMaterial({ envMap: environnement, side: THREE.DoubleSide, transparent: true, - opacity: 0.8, + opacity: 0.7, //reflectivity: 0.8, - roughness: 0.1, - metalness: 0.9, + roughness: 0.09, + metalness: 0.98, //attenuationDistance: 0.5, //ior: 2, //sheen: 0,