react-postprocessing icon indicating copy to clipboard operation
react-postprocessing copied to clipboard

Problem Using Different Effects on Different Items on Same Canvas

Open reggie3 opened this issue 4 years ago • 2 comments

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

image

reggie3 avatar May 24 '20 14:05 reggie3

Updated your example, looks like the issue is still relevant. Dunno the solution

talentlessguy avatar Aug 07 '20 12:08 talentlessguy

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.

drcmda avatar Aug 07 '20 18:08 drcmda