GL_FRAGCOORD(3G)

    .SH "NAME" gl_FragCoord - contains the window-relative coordinates of the current fragment
    .SH "DECLARATION"

            in highp
            vec4
            gl_FragCoord
        ;

    .SH "DESCRIPTION"
        .PP 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().

    .SH "VERSION SUPPORT"
        .TS allbox tab(:); l l l l l. T{ gl_FragCoord T}:T{ T}:T{ T}:T{ T}:T{ T}

    .SH "SEE ALSO"
        .PP gl_FragDepth()

    .SH "COPYRIGHT"
        .PP Copyright © 2011-2015 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-2015 Khronos Group