I wonder if it wouldn’t be possible to use stencil buffers here as well.
Here is an example of this
I’m not an expert on stencil buffers, so I cannot give you a very good example on how to do this myself 
3 Likes