★ wanayoo — archive 1999 https://github.com/react-spring/react-postprocessing/issues/3Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Using Different Effects on Different Items on Same Canvas #3

Open
reggie3 opened this issue May 24, 2020 · 2 comments
Open

Problem Using Different Effects on Different Items on Same Canvas #3

reggie3 opened this issue May 24, 2020 · 2 comments

Comments

@reggie3
Copy link

@reggie3 reggie3 commented May 24, 2020 •

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

@talentlessguy
Copy link
Member

@talentlessguy talentlessguy commented Aug 7, 2020 •

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

@drcmda
Copy link
Collaborator

@drcmda drcmda commented Aug 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.