tweaks again

This commit is contained in:
2026-03-19 00:21:52 +01:00
parent defff30b2b
commit 3e89cf303f
2 changed files with 13 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ export class TetraScene extends THREE.Scene {
switch (theme) { switch (theme) {
case "Plasma": case "Plasma":
this.ambientLight.intensity = 0 this.ambientLight.intensity = 0
this.directionalLight.intensity = 1.75 this.directionalLight.intensity = 5
this.directionalLight.position.set(5, -20, 20) this.directionalLight.position.set(5, -20, 20)
this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3" this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3"
this.background = new THREE.Color(0xffffff) this.background = new THREE.Color(0xffffff)
@@ -81,8 +81,8 @@ export class TetraScene extends THREE.Scene {
this.playfield.retroEdge.visible = false this.playfield.retroEdge.visible = false
break break
case "Espace": case "Espace":
this.ambientLight.intensity = 7 this.ambientLight.intensity = 2
this.directionalLight.intensity = 5 this.directionalLight.intensity = 10
this.directionalLight.position.set(2, 15, 20) this.directionalLight.position.set(2, 15, 20)
this.music.src = "audio/benevolence.m4a" this.music.src = "audio/benevolence.m4a"
this.background = new THREE.Color(0x000000) this.background = new THREE.Color(0x000000)

View File

@@ -19,7 +19,7 @@ export class Vortex extends THREE.Group {
new THREE.CylinderGeometry(40, 40, 1000, 12, 1, true), new THREE.CylinderGeometry(40, 40, 1000, 12, 1, true),
new THREE.MeshBasicMaterial({ new THREE.MeshBasicMaterial({
side: THREE.BackSide, side: THREE.BackSide,
blending: THREE.NormalBlending blending: THREE.MultiplyBlending
}) })
) )
this.add(this.opaqueCylinder) this.add(this.opaqueCylinder)
@@ -46,14 +46,15 @@ export class Vortex extends THREE.Group {
texture.wrapT = THREE.MirroredRepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(1, 2) texture.repeat.set(1, 2)
this.transparentCylinder.material.map = texture this.transparentCylinder.material.map = texture
this.transparentCylinder.material.opacity = 0.15
}) })
this.transparentCylinder.material.opacity = 0.05
new THREE.TextureLoader(this.loadingManager).load("./images/plasma2.jpg", texture => { new THREE.TextureLoader(this.loadingManager).load("./images/plasma2.jpg", texture => {
texture.wrapS = THREE.RepeatWrapping texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.MirroredRepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(2, 2) texture.repeat.set(2, 2)
this.opaqueCylinder.material.map = texture this.opaqueCylinder.material.map = texture
this.opaqueCylinder.material.blending = THREE.MultiplyBlending
}) })
this.globalRotation = 0.028 this.globalRotation = 0.028
@@ -69,23 +70,24 @@ export class Vortex extends THREE.Group {
new THREE.TextureLoader(this.loadingManager).load("./images/colorfull.jpg", texture => { new THREE.TextureLoader(this.loadingManager).load("./images/colorfull.jpg", texture => {
texture.wrapS = THREE.RepeatWrapping texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.MirroredRepeatWrapping texture.wrapT = THREE.MirroredRepeatWrapping
texture.repeat.set(2, 8) texture.repeat.set(2, 4)
this.transparentCylinder.material.map = texture this.transparentCylinder.material.map = texture
this.transparentCylinder.material.opacity = 0.15
}) })
this.transparentCylinder.material.opacity = 0.11
new THREE.TextureLoader(this.loadingManager).load("./images/stars_space.jpg", texture => { new THREE.TextureLoader(this.loadingManager).load("./images/stars_space.jpg", texture => {
texture.wrapS = THREE.RepeatWrapping texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.RepeatWrapping texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(3, 6) texture.repeat.set(3, 3)
this.opaqueCylinder.material.map = texture this.opaqueCylinder.material.map = texture
this.opaqueCylinder.material.blending = THREE.AdditiveBlending
}) })
this.globalRotation = 0.028 this.globalRotation = 0.028
this.opaqueTextureRotation = 0.006 this.opaqueTextureRotation = 0.006
this.opaqueMoveForward = 0.03 this.opaqueMoveForward = 0.03
this.transparentTextureRotation = 0.006 this.transparentTextureRotation = 0.006
this.transparentMoveForward = 0.012 this.transparentMoveForward = 0.04
this.visible = true this.visible = true
break break