Use occluder model to hide objects

Try this, I just changed the layers in the script: https://playcanvas.com/editor/scene/539506

1 Like