Effect improvement
This commit is contained in:
parent
1fa8b8f06e
commit
4cae045d0d
@ -79,7 +79,7 @@ const updateScene = () => {
|
||||
const zoneEffects = zoneStore.zone?.zoneEffects as Array<{ effect: string, strength: number }>
|
||||
|
||||
if (zoneEffects?.length) {
|
||||
applyEffects({ light: timeBasedLight }, ...zoneEffects)
|
||||
applyEffects(zoneEffects)
|
||||
} else {
|
||||
applyEffects({
|
||||
light: timeBasedLight,
|
||||
@ -89,7 +89,7 @@ const updateScene = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const applyEffects = (effectValues: Record<string, number>) => {
|
||||
const applyEffects = (effectValues: any) => {
|
||||
if (effects.light.value) {
|
||||
const darkness = 1 - (effectValues.light ?? 100) / 100
|
||||
effects.light.value.clear()
|
||||
|
Loading…
x
Reference in New Issue
Block a user