3d object overlaping area transparent shader

I have two 3D objects, I want to move these objects while the game is running and I want to know how to write the shader that makes the overlapping region transparent. thank you.

google intersection shader: