Hey, I have a question about depth.

How to do this depth effect!
I found a video here.
https://www.youtube.com/watch?v=pws2ntTC0NM

This depth operation can be performed only when the ground is translucent in the video.
How to achieve the effect when the scene is mask mode