![screenshot of the described issue][1]
So I basically want only the mask behind the wall to render. I've solved this by doing a raycast to detect whether the mask should be visible or not, but this comes with some issues for example the raycast not hitting very thin objects.
Those are my current render settings:
![current render settings][2]
Is this possible to do inside of the shader (or the render settings) without writing a custom shader for the wall?
I've tried changing the Depth Test but that doesn't appear to do anything too useful. Or I just haven't found the right combination yet.
[1]: /storage/temp/179780-mask.png
[2]: /storage/temp/179781-settings.png
↧