react-postprocessing
react-postprocessing copied to clipboard
Problem Using Different Effects on Different Items on Same Canvas
Is it possible for different meshes in the same scene to have different effects applied to them? In this code sandbox, only the effect fo the last rendered item is applied: https://codesandbox.io/s/react-post-processing-single-item-3dm54?file=/src/index.js
Updated your example, looks like the issue is still relevant. Dunno the solution
in postprocessing yes, it's possible to select items, in react-pp, atm no, effects are meant for the entire scene. the problem is that selecting specific items is harder to express declaratively and we need to find a good model. @gsimone has begun merging the first effect that can select (afaik), godrays, and it's using regular react-refs, which might just be the solution for everything.