is there any way to output the depthTexture of the volumeMapper while rendering the volume but not renderToImageOn?

is there any way to output the depthTexture of the volumeMapper while rendering the volume but not renderToImageOn?
Thanks

You could attach a frame buffer object to the window and render to it similar to what RenderToImage does.