- Home /
Hiding parts of mesh but only on defined objects
Hi,
I need to be able to hide parts of certain meshes in the scene by putting another mesh/object in front of them. Hopefully this illustration explains what I mean:
So there would be 2 objects with mesh, and only Mesh A would be hidden partially when the hider covers it.
I did find a shader that hides mesh that is behind it here http://answers.unity3d.com/questions/244634/hiding-parts-of-a-mesh.html. It works just fine, but the problem is it hides all mesh. Could it be possible to define it so that it hides only objects with a certain tag or something? Does shader code even have access to Unity tags? I have very limited experience on shaders, so help would be appreciated! =)
I'm currently searching for the same thing! Do we have a solution?
It has been a while, but I think I used shader from this tutorial: http://wiki.unity3d.com/index.php/Depth$$anonymous$$ask
Your answer
Follow this Question
Related Questions
Mesh shader to outline colour changes 1 Answer
Outline flat mesh 1 Answer
Nicely fade transparency with standard shader? 2 Answers
Create a hole in a mesh using a shader 0 Answers
How to use mesh data in shader 0 Answers