The node you are looking for is at Shadow texture Depth Buffer sharing.