I would like to add some planar mirror objects with perfect reflectivity to a scene but instead of getting the distance to the mirror surface per pixel in the depth buffer, I would like to get the total depth of the reflection (ie. the distance the ray traveled from camera to mirror surface plus the distance from the mirror surface to the primary intersection of the reflection ray.
How can I do that?