FragCoord exposes the underlying GLSL primitive gl_FragCoord
. It returns the position of the running fragment shader in pixel dimensions, with the origin in the upper left hand corner of the screen. Note that the FragCoord returns screen-relative coordinates, not geometry coordinates.
dimensions
input | output |
none | 2 |