I need to shift the depth of a fragment a little bit (converting circles to spheres). Can anyone explain me how the original gl_FragCoord.z value is calculatged ?
I need to shift the depth of a fragment a little bit (converting circles to spheres). Can anyone explain me how the original gl_FragCoord.z value is calculatged ?
I'm sure there are lots of places, but here are a few:Originally Posted by Vadim
* gl_FragCoord.z (OpenGL.org thread)
* Comparing Depth in Fragment Shader (OpenGL.org thread)
here is another OpenGL.org thread:
http://www.opengl.org/discussion_boa...766#Post255766