1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00

ISSUE(effects/unreal-bloom): Removed undefined uniform in callback for watcher

This commit is contained in:
Sune Bear 2022-08-12 00:03:50 +08:00
parent 8c5dd149b9
commit 59da70038c

View File

@ -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)