From 3e89cf303f1f44d95514dd383a985351bccc0615 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 19 Mar 2026 00:21:52 +0100 Subject: [PATCH] tweaks again --- jsm/TetraScene.js | 6 +++--- jsm/Vortex.js | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index 226bbee..f09b8ea 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -72,7 +72,7 @@ export class TetraScene extends THREE.Scene { switch (theme) { case "Plasma": this.ambientLight.intensity = 0 - this.directionalLight.intensity = 1.75 + this.directionalLight.intensity = 5 this.directionalLight.position.set(5, -20, 20) this.music.src = "audio/Moon-Over-Moscow-DJ-ResiDance-Mix-2022.mp3" this.background = new THREE.Color(0xffffff) @@ -81,8 +81,8 @@ export class TetraScene extends THREE.Scene { this.playfield.retroEdge.visible = false break case "Espace": - this.ambientLight.intensity = 7 - this.directionalLight.intensity = 5 + this.ambientLight.intensity = 2 + this.directionalLight.intensity = 10 this.directionalLight.position.set(2, 15, 20) this.music.src = "audio/benevolence.m4a" this.background = new THREE.Color(0x000000) diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 6591ef7..5e42994 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -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