Depth mask on mesh?

Does anyone know if its possible to create a depth mask material/texture on a mesh so you can see the HTML element (like a div) that’s behind the canvas?

All good! I found a Playground that does it properly

https://www.babylonjs-playground.com/#134UKN#6

2 Likes