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

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