- Home /
Certain Materials visible behind objects
Hello, I want my character visible (with some kind of color modification) behind objects so I wrote a shader with ZTest Greater and ZTest LEqual. It works but the problem is that my character is made of different materials.
That means that if pixels from his hand is behind pixels of his head (and viceversa) the higher Z is always drawn. Is there any way to fix this? I only want this to happen with materials other than the characters.
What does your shader look like for this right now? Due to the way different types of shaders are constructed, there are numerous possible solutions. For example, vertex/fragment shaders and surface shaders require very different formatting in order to achieve the basic result you're attempting.
Your answer
Follow this Question
Related Questions
Character behind obstacles shader, multiple Pass issue 0 Answers
Fog Mode Off Functionality 1 Answer
viewDir changes with o.Normal 1 Answer
How to set shader vertex normals to face up 1 Answer
shader Transparency 1 Answer