mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
ISSUE(effects/unreal-bloom): Removed undefined uniform in callback for watcher
This commit is contained in:
parent
8c5dd149b9
commit
59da70038c
@ -20,7 +20,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
Object.keys(props).forEach(p => {
|
Object.keys(props).forEach(p => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
watch(() => this[p], (value) => { pass.uniforms[p].value = value })
|
watch(() => this[p], (value) => { pass[p].value = value })
|
||||||
})
|
})
|
||||||
|
|
||||||
this.initEffectPass(pass)
|
this.initEffectPass(pass)
|
||||||
|
Loading…
Reference in New Issue
Block a user