Quantcast
Channel: Questions in topic: "shader programming"
Viewing all articles
Browse latest Browse all 169

Only render stencil mask when behind maskable object

$
0
0
![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

Viewing all articles
Browse latest Browse all 169

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>