How to create see-through-walls shader, similar to shaders in games when a character stands behind a wall I'm trying to create a shader, that will dissolve a wall on a certain spot (or any object), when I need it to. Here is an example of what I'm trying to do.
unity shader example
Here is what I created. It works pretty well when I use it on a plane with no depth or a cube. However, when I use it on more complex objects, some walls become visible. Enabling backface culling solves a lot of issues, but it is still not ideal.
How can I improve the shader so it completely erases all walls that are under the influence of the Empty object?
Additionally to what you're doing you need to go to the shader editor, press N, go to options in the material you want this effect in, and find &quot;Options &gt; Settings &gt; Back Face culling&quot; uncheck.