Shirakana
07-06-2011, 03:16 AM
Hi all !
A very dumb question about gl_FragCoord but I can't find the information anywhere.
GLSL Specification says gl_FragCoord.xy holds window coordinates for each fragment, but does not precise if it is relative to viewport or not.
For example, if I set my viewport to (10,10,100,100), what would be the range of gl_FragCoord.xy ? [0..100[ or [10..110[ ?
A very dumb question about gl_FragCoord but I can't find the information anywhere.
GLSL Specification says gl_FragCoord.xy holds window coordinates for each fragment, but does not precise if it is relative to viewport or not.
For example, if I set my viewport to (10,10,100,100), what would be the range of gl_FragCoord.xy ? [0..100[ or [10..110[ ?