I meet a question: when do depth peeling, how could you know the depth layer number?
In other words, during rendering, many fragments happens in one pixel, but one remains to be the final color due to depth test. How could you know the number of fragments?
obvioursly, render times and times again to get a more "deeper" image and finaly see if there are any shading pixel is one way. But the question remains: how do you know the render times?