From 59da70038c43bd4173d4f8e4f0cd3a5c56a193a1 Mon Sep 17 00:00:00 2001 From: Sune Bear Date: Fri, 12 Aug 2022 00:03:50 +0800 Subject: [PATCH] ISSUE(effects/unreal-bloom): Removed undefined uniform in callback for watcher --- src/effects/UnrealBloomPass.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/UnrealBloomPass.ts b/src/effects/UnrealBloomPass.ts index d6c16f3..69a8655 100644 --- a/src/effects/UnrealBloomPass.ts +++ b/src/effects/UnrealBloomPass.ts @@ -20,7 +20,7 @@ export default defineComponent({ Object.keys(props).forEach(p => { // @ts-ignore - watch(() => this[p], (value) => { pass.uniforms[p].value = value }) + watch(() => this[p], (value) => { pass[p].value = value }) }) this.initEffectPass(pass)