0
$\begingroup$

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?

blender shader blender shader example 1 blender shader example 2

$\endgroup$

1 Answer 1

0
$\begingroup$

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 "Options > Settings > Back Face culling" uncheck.

$\endgroup$
1
  • $\begingroup$ That is quite the opposite of what I want. That setting is unchecked by default and the result is bad. I enabled backface culling (as I said in the post above) which helped a lot but it is still not enough. $\endgroup$
    – Dalibor-P
    Commented Feb 16, 2021 at 19:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .