You can see how three.js does this here …
… though your code also looks reasonable to me, and may be fine.
Perhaps it’s better to continue the investigation on your app in the other thread (Weird EffectComposer result - #5 by electric.cicada), I think it is a different issue, and I’ll follow up there.
1 Like