GLSL is a shading language created in 1992.
#330on PLDB | 32Years Old | 12kRepos |
OpenGL Shading Language (abbreviated: GLSL), is a high-level shading language with a syntax based on the C programming language. It was created by the OpenGL ARB (OpenGL Architecture Review Board) to give developers more direct control of the graphics pipeline without having to use ARB assembly language or hardware-specific languages.. Read more on Wikipedia...
varying vec4 v_color;
void main()
{
gl_FragColor = v_color;
}
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | ||
MultiLine Comments | ✓ | ||
Line Comments | ✓ | ||
Integers | ✓ | ||
Floats | ✓ | ||
Hexadecimals | ✓ | ||
Octals | ✓ |