This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/glsl/glsl.frag

21 lines
407 B
GLSL

/* Fragment shader */
// Macro inside a single-line comment: #define COMMENT_MACRO 1
/* Macro inside a block comment: #define COMMENT_MACRO 2 */
# define INDENTED_MACRO 5.0
#define SINGLELINE_MACRO 10.0
#define MULTILINE_MACRO(a, b) vec2( \
a, \
b \
)
void main()
{
gl_FragColor[0] = gl_FragCoord[0] / 400.0;
gl_FragColor[1] = gl_FragCoord[1] / 400.0;
gl_FragColor[2] = 1.0;
}