Portal:OpenGL Shading Language/Built-in GLSL Stuff: Difference between revisions
Jump to navigation
Jump to search
Built-in variable summary. |
m Added clarification. |
||
Line 1: | Line 1: | ||
GLSL provides a number of built-in '''variables''' and '''functions'''. Most of the variables are specific to a certain stage, providing stage-specific information to that shader. Most of the functions are not specific; they can (usually) be called from any shader stage. | GLSL provides a number of built-in '''variables''' and '''functions'''. Most of the variables are specific to a certain stage, providing stage-specific information to that shader. Most of the functions are not stage specific; they can (usually) be called from any shader stage. | ||
All built-in GLSL variables begin with the "gl_" prefix, which is reserved in GLSL for this purpose. | All built-in GLSL variables begin with the "gl_" prefix, which is reserved in GLSL for this purpose. |
Latest revision as of 06:31, 25 July 2013
GLSL provides a number of built-in variables and functions. Most of the variables are specific to a certain stage, providing stage-specific information to that shader. Most of the functions are not stage specific; they can (usually) be called from any shader stage.
All built-in GLSL variables begin with the "gl_" prefix, which is reserved in GLSL for this purpose.