Use occluder model to hide objects

I understand now. You can do it with some material tricks. Here you go:
https://playcanvas.com/project/494481/overview/mesh-perpixel-cull

1 Like