If gl_FragCoord is the pixel location…
Why is it a vec4?
What are the last two components?
According to http://www.opengl.org/sdk/docs/manglsl/xhtml/gl_FragCoord.xml the z component can be used for depth information in cases where gl_fragDepth contains no/invalid data.
-Feen
1 Like