diff --git a/jsm/Menu.js b/jsm/Menu.js index 8a1cf18..f4d81dd 100644 --- a/jsm/Menu.js +++ b/jsm/Menu.js @@ -172,6 +172,7 @@ export class Menu extends GUI { let input = controller.domElement.getElementsByTagName("input")[0] input.select() input.onkeydown = function (event) { + event.preventDefault() controller.setValue(event.key) input.blur() } diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index d65c014..f8b8aed 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -12,10 +12,10 @@ export class TetraScene extends THREE.Scene { this.vortex = new Vortex(loadingManager) this.add(this.vortex) - this.ambientLight = new THREE.AmbientLight(0xffffff, 1) + this.ambientLight = new THREE.AmbientLight(0xffffff, 0.6) this.add(this.ambientLight) - this.directionalLight = new THREE.DirectionalLight(0xffffff, 5) + this.directionalLight = new THREE.DirectionalLight(0xffffff, 11) this.add(this.directionalLight) this.theme = settings.theme @@ -48,7 +48,7 @@ export class TetraScene extends THREE.Scene { switch (theme) { case "Plasma": this.ambientLight.intensity = 0.6 - this.directionalLight.intensity = 5 + this.directionalLight.intensity = 11 this.directionalLight.position.set(5, -20, 20) break case "Espace": diff --git a/jsm/Vortex.js b/jsm/Vortex.js index e7f6698..6825230 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.05 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.5 + this.colorFullCylinder.material.opacity = 0.8 this.globalRotation = 0.028 this.darkTextureRotation = 0.005