(1)The gl_FragCoord built-in GLSL variable can be used in fragment shaders to get the window-space coordinates of the current fragment.
gl_FragCoord