How can I incorporate depth information from a post-processing scene into a separate Fragment Shader?

My post-processing scene consists of a postFragmentShader and postVertexShader, and its purpose is to obtain depth information. The sphereFragmentShader is part of a sphere ShaderMaterial that is rendered within the post-processing scene. I aim to utilize the depth texture in the sphereFragmentShader for performing ray-to-sphere intersection calculations in my sphereShader. However, I am uncertain about the method to pass the depth information to the shader or whether this approach is appropriate. Any guidance would be greatly appreciated.

EXAMPLE