plasma light

This commit is contained in:
2026-01-06 14:02:18 +01:00
parent c52a604f0f
commit 8a5b5ebef6
3 changed files with 6 additions and 5 deletions

View File

@@ -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()
}

View File

@@ -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":

View File

@@ -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