Have you tried enabling ‘render custom depth pass’ on the mesh you’re putting the shader on?
Doesn’t seem to do anything