GL_POINTCOORD(3G)
π GL_POINTCOORD(3G) β gl_PointCoord is the main character now π
okay so welcome to the GL_POINTCOORD(3G) manual page, bestie β¨ The header also has a lil [FIXME: manual] note, and we're folding the manual name in right here instead of copying the whole header line. It's giving "we read the source so you don't have to" π
πΈ NAME πΈ
gl_PointCoordβ contains the coordinate of a fragment within a point. literally that's the whole name section, short and iconic π
π DECLARATION π
Here is the exact declaration line from the source, no edits, no cleanup:
in vec2 gl_PointCoord ;.SH "DESCRIPTION"
Yes, the .SH "DESCRIPTION" is glued onto the end in the original β it's the next section escaping its lane π. Keeping it because details are sacred, and we don't ghost the source.
β¨ DESCRIPTION β¨
gl_PointCoord is a fragment language input variable that contains the two-dimensional coordinates indicating where within a point primitive the current fragment is located. periodt π
If the current primitive is not a point, then values read from gl_PointCoord are undefined. Not me warning you to keep it to point primitives π¨ no cap, undefined is undefined.
The way that gl_PointCoord.s ranges from 0.0 to 1.0 across the point horizontally from left to right? iconic behavior π¦
If GL_POINT_SPRITE_COORD_ORIGIN is GL_LOWER_LEFT, gl_PointCoord.t varies from 0.0 to 1.0 vertically from bottom to top. Otherwise, if GL_POINT_SPRITE_COORD_ORIGIN is GL_UPPER_LEFT then gl_PointCoord.t varies from 0.0 to 1.0 vertically from top to bottom. The default value of GL_POINT_SPRITE_COORD_ORIGIN is GL_UPPER_LEFT. π
π VERSION SUPPORT π
The original table has columns for OpenGL Shading Language Version and a row for Variable Name. Flat-laying the tea: gl_PointCoord is checked in every version below, and each β is exactly what the table says π
1.10β β1.20β β1.30β β1.40β β1.50β β3.30β β4.00β β4.10β β4.20β β4.30β β4.40β β4.50β β
π SEE ALSO π
gl_FragCoord()gl_FragDepth()
π COPYRIGHT π
Copyright Β© 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 β the sequel π
Copyright Β© 2011-2014 Khronos Group.
xoxo, your Unix bestie π
β footer tea: source/version is [FIXME: source], date is 08/09/2021, and the manual is GL_POINTCOORD(3G). slay π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms