- Home /
Shaders problem: additive near transparent diffuse
I have two objects with different shaders in my scene. One is a particle system with an additive shader and is closer to the camera than the other object. The other object has a transparent diffuse shader and is behind the particle system. My problem is that the additive shader always appears to be behind the transparent shader even though it is not. In general, I know why this is happening, I just don't know what to do to change it.
I have attached an image that shows the particle system in front of normal diffuse shaders and a copy of the particle system in front of the transparent diffuse shader. Both particle systems have the same z position and are closer to the camera than any other objects.
Can someone please tell me how to correct this?
Answer by nchang · May 20, 2014 at 06:58 AM
I don't think there is an easy way to do that. Because you use the builtin shaders. We could use Queue tag in shader, for instance, set top layer to Transparent + 1, and then just use the builtin pass to resolve this problem.