From 37f0d30fee6862c5a2f829230e514d993d9e0386 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Sat, 22 Nov 2025 13:37:38 +0100 Subject: [PATCH] Tweak: mood of lighting and gentler lightshafts --- party-cathedral/src/scene/root.js | 4 ++-- party-cathedral/src/scene/rose-window-light.js | 2 +- party-cathedral/src/scene/rose-window-lightshafts.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/party-cathedral/src/scene/root.js b/party-cathedral/src/scene/root.js index 5e3a8ef..5ffcfa5 100644 --- a/party-cathedral/src/scene/root.js +++ b/party-cathedral/src/scene/root.js @@ -39,11 +39,11 @@ export function createSceneObjects() { state.scene.add(floor); // 3. Lighting (Minimal and focused) - const ambientLight = new THREE.AmbientLight(0x606060, 0.1); // Increased ambient light for a larger space + const ambientLight = new THREE.AmbientLight(0x606060, 0.2); // Increased ambient light for a larger space state.scene.add(ambientLight); // Add a HemisphereLight for more natural, general illumination in a large space. - const hemisphereLight = new THREE.HemisphereLight(0xffffff, 0x444444, 0.2); + const hemisphereLight = new THREE.HemisphereLight(0xffddcc, 0x444455, 0.5); // Visual aids for the light source positions if (state.debugLight && THREE.HemisphereLightHelper) { diff --git a/party-cathedral/src/scene/rose-window-light.js b/party-cathedral/src/scene/rose-window-light.js index e7f21e4..cc6b981 100644 --- a/party-cathedral/src/scene/rose-window-light.js +++ b/party-cathedral/src/scene/rose-window-light.js @@ -22,7 +22,7 @@ export class RoseWindowLight extends SceneFeature { this.spotlight.position.set(0, naveHeight, -length / 2 + 10); // Position it at the rose window this.spotlight.angle = Math.PI / 9; // A reasonably focused beam this.spotlight.penumbra = 0.3; // Soft edges - this.spotlight.decay = 0.9; + this.spotlight.decay = 0.7; this.spotlight.distance = 30; this.spotlight.castShadow = false; diff --git a/party-cathedral/src/scene/rose-window-lightshafts.js b/party-cathedral/src/scene/rose-window-lightshafts.js index 208a499..f7382a5 100644 --- a/party-cathedral/src/scene/rose-window-lightshafts.js +++ b/party-cathedral/src/scene/rose-window-lightshafts.js @@ -59,7 +59,7 @@ export class RoseWindowLightshafts extends SceneFeature { }); // --- Create multiple thin light shafts --- - const numShafts = 7; + const numShafts = 12; for (let i = 0; i < numShafts; i++) { const material = baseMaterial.clone(); // Each shaft needs its own material for individual opacity @@ -107,7 +107,7 @@ export class RoseWindowLightshafts extends SceneFeature { const { mesh, startPoint, endPoint, floorStartPoint, floorEndPoint, moveSpeed } = shaft; // Animate texture for dust motes - mesh.material.map.offset.y -= deltaTime * 0.1; + mesh.material.map.offset.y -= deltaTime * 0.001; // --- Movement Logic --- const pathDirection = floorEndPoint.clone().sub(floorStartPoint).normalize(); @@ -140,7 +140,7 @@ export class RoseWindowLightshafts extends SceneFeature { mesh.quaternion.copy(quaternion); // --- Music Visualization --- - const beatPulse = state.music ? state.music.beatIntensity * 0.25 : 0; + const beatPulse = state.music ? state.music.beatIntensity * 0.05 : 0; mesh.material.opacity = fadeOpacity + beatPulse; }); }