depth [min-max] accumulation information


I need to have something like a
GL_occlusion_query that, instead of counting accepted fragment would return the maximal depth value accepted.

As far i know, such extension doesn’t seem to exis. I find a multipass way to do this in the following article:

But maybe some of you have other idea for making it fast.