___
___Screen Window ( TO BE )
___
___
___Application Window (app window / window)
___
:.../gl_FragCoord (build-in variable in FragmentShader)
gl_FragCoord is a built-in variable that is only available in a fragment shader. It is a vec3, so it has an X, Y, and Z component. The X and Y values are in window coordinates, so the absolute value of these numbers will change based on the window's resolution. Recall that window coordinates put the origin at the bottom-left corner. So fragments along the bottom of the triangle would have a lower Y value than those at the top.
___
___Texture Coordinate ( TO BE )
___
___Texture Coordinate ( TO BE )
___
___
___OpenGL Coordinate ( TO BE )
___
___OpenGL Coordinate ( TO BE )
___
No comments:
Post a Comment