What coord system is gl_FragCoord in? If I read this value in my frag shader, what range of values can I expect? Is it clamped to [0,1]?
CD
What coord system is gl_FragCoord in? If I read this value in my frag shader, what range of values can I expect? Is it clamped to [0,1]?
CD
if I’m not mistaken, gl_FragCoord is in Normalized Device Coordinates (NDC), which in OpenGL means x, y, and z are between -1 and +1.
here’s a good reference explaining the different coordinate systems:
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.