hi everyone
It occurred to me that the depth value in NDC is between -1 and 1 , while the depth value in depth buffer is between 0 and 1.
So where did the change happened ?
And most importantly , why does OpenGL bother to make the range between -1 and 1, then change it to 0 and 1.
DX does it in a simpler way , range of depth is always between 0 and 1 after perspective divide by default.