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

Unity shader question - mesh subtract boolean operation (stencil buffer)

$
0
0
Hi - I'm trying to achieve a subtract operation between two meshes using the stencil buffer. The example in the Unity manual for the stencil buffer is quite close to what I want to achieve. The code is at the end of https://docs.unity3d.com/Manual/SL-Stencil.html The issue is that I cannot "see" through the cut mesh. Here's an example shot ![alt text][1] [1]: /storage/temp/174501-example-view.png Everything is working except being able to "see" the sphere. I've tried to cull backfaces in the surface shader code linked above, but haven't had any luck. Thanks in advance!

Viewing all articles
Browse latest Browse all 169

Trending Articles



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