GL_FRAGCOORD - Online Linux Manual PageSection : 3G
Updated : 01/20/2022
Source : [FIXME: source]
Note : [FIXME: manual]

NAMEgl_FragCoord − contains the window−relative coordinates of the current fragment

DECLARATIONin ​vec4 ​gl_FragCoord ​;.SH "DESCRIPTION" Available only in the fragment language, gl_FragCoord is an input variable that contains the window relative coordinate (x, y, z, 1/w) values for the fragment​. If multi−sampling, this value can be for any location within the pixel, or one of the fragment samples​. This value is the result of fixed functionality that interpolates primitives after vertex processing to generate fragments​. The z component is the depth value that would be used for the fragment's depth if no shader contained any writes to gl_FragDepth()​. gl_FragCoord may be redeclared with the additional layout qualifier identifiers origin_upper_left or pixel_center_integer​. By default, gl_FragCoord assumes a lower−left origin for window coordinates and assumes pixel centers are located at half−pixel centers​. For example, the (x, y) location (0​.5, 0​.5) is returned for the lower−left−most pixel in a window​. The origin of gl_FragCoord may be changed by redeclaring gl_FragCoord with the origin_upper_left identifier​. The values returned can also be shifted by half a pixel in both x and y by pixel_center_integer so it appears the pixels are centered at whole number pixel offsets​. This moves the (x, y) value returned by gl_FragCoord of (0​.5, 0​.5) by default to (0​.0, 0​.0) with pixel_center_integer​. If gl_FragCoord is redeclared in any fragment shader in a program, it must be redeclared in all fragment shaders in that program that have static use of gl_FragCoord​. Redeclaring gl_FragCoord with any accepted qualifier affects only gl_FragCoord​.x and gl_FragCoord​.y​. It has no affect on rasterization, transformation or any other part of the OpenGL pipeline or language features​.

VERSION SUPPORT OpenGL Shading Language Version Variable Name 1​.10 none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'>none;'> 1​.20 1​.30 1​.40 1​.50 3​.30 4​.00 4​.10 4​.20 4​.30 4​.40 4​.50 gl_FragCoord

SEE ALSOgl_FragDepth()

COPYRIGHTCopyright © 2011−2014 Khronos Group​. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1​.0, 8 June 1999​. http://opencontent​.org/openpub/​.

COPYRIGHT
Copyright © 2011-2014 Khronos Group
0
Johanes Gumabo
Data Size   :   13,158 byte
man-gl_FragCoord.3GBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 203,277
Visitor ID   :     :  
Visitor IP   :   3.129.195.82   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.