How to create a invisible material that masks meshes that are behind it

like this?

the test I did is a bit tricky…I can share if you want

1 Like