Is there a shader I could use to always render a material over another material?
I'd like to be able to always render a material over a specific object's material
Here is an image of what I mean
So I want the green jacket to always render over the grey jacket. Even if there are vertices of the grey jacket poking through the green jacket.
I realize that my photoshopped image on the bottom isn't completely accurate. If the green always renders over the grey, the small part at the bottom of the green jacket will render over the grey part that's supposed to be covering it.
Also, in the image the render queue of the green jacket is set higher than the grey jacket.
And if at all possible I'd like to avoid using multiple cameras as I will have other things that will render over other objects.
Is this possible with a shader? I'm not too familiar with shaders so if anyone could point me in the right direction that would be appreciated.