- Home /
Using two different shaders in different cameras
Hi there,
Let me explain my scenario:
I'm developing a game which needs to use two different shaders: one that converts the whole screen into a specific color and another one to set my sprite to a fixed color when the first one is active. I've used one shader to set my scene blue, but the problem comes when I try to set my sprite to a specific color different from the background. In order to avoid the first shader to overlay my selected sprites that must be in other color, I've placed them in a different camera and it works just fine without any shader. But I want every sprite in this camera to be of a different color. Using the same shader in the other camera won't work because it will overlay the sprites and the scene and the effect is not what I'm looking for.
What would be the best approach to this problem? I've thought I could use a different material to my sprites, but I don't know if it would be a good practice.
I'm quite new to shaders and I really don't know what's achievable with them. I am looking for some tips that I can use so I can move forward with this problem.
Thanks in advance!
Your answer