Hi all. I would like to combine several custom image effects for one camera. I used OnRenderImage and graphics.blit function.
Is it an optimum way or I need to implement all of them inside one shader?
Also I want to be able to select some of them based on situations of a game
You can just add them in the order you want them to be applied to you camera game object. This however means that every effect will first need to blit the last result, therefore you will have quite some overhead.If you want to optimize that, you would need to implement something like the post processing stack of unity with one uber shader that first calculates all effects and them applies them at once. See here: GitHub - Unity-Technologies/PostProcessing: Post Processing Stack
2 Likes
Try reading the docs and doing a little more research as you really have to be near-zero effort to make this thread. 197 posts in, I do expect more…
1 Like