This commit is contained in:
Christian Beutel
2024-11-16 16:21:31 +01:00
parent 54835b10d1
commit ffb47cf5ba
9 changed files with 37 additions and 10 deletions

View File

@@ -42,10 +42,10 @@ Command: npx @threlte/gltf@2.0.1 static/models/mountain.glb
});
$: cabinLightIntensity.set($theme == "dark" ? 4 : 0);
const sunLightIntensity = tweened($theme == "light" ? 4 : 0, {
const sunLightIntensity = tweened($theme == "light" ? 5 : 0, {
duration: 500,
});
$: sunLightIntensity.set($theme == "light" ? 4 : 0);
$: sunLightIntensity.set($theme == "light" ? 5 : 0);
const moonLightIntensity = tweened($theme == "dark" ? 0.8 : 0, {
duration: 500,