View Full Version : gl_FragCoord.z question(s)
05-30-2006, 01:34 PM
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]?
05-30-2006, 03:46 PM
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.
05-30-2006, 03:48 PM
here's a good reference explaining the different coordinate systems:
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.