Jump to content
Posted 14 November 2012 - 10:15 AM
Posted 14 November 2012 - 10:38 AM
Posted 14 November 2012 - 01:02 PM
Your assumption is correct, you are in clip space after the modelview and the projection matrix, but that does not mean that the fragment coordinate is in clip space. The perspective division stage separates the two. The fragment coordinate is the window coordinate (not sure if it's the normalized or pixel coordinate though) of the fragment, and consequently the depth coordinate is effectively the depth buffer value.
Posted 14 November 2012 - 01:12 PM