summaryrefslogtreecommitdiff
path: root/tests/examplefiles/glsl.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/glsl.frag')
-rw-r--r--tests/examplefiles/glsl.frag7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/examplefiles/glsl.frag b/tests/examplefiles/glsl.frag
new file mode 100644
index 00000000..132b0353
--- /dev/null
+++ b/tests/examplefiles/glsl.frag
@@ -0,0 +1,7 @@
+/* Fragment shader */
+void main()
+{
+ gl_FragColor[0] = gl_FragCoord[0] / 400.0;
+ gl_FragColor[1] = gl_FragCoord[1] / 400.0;
+ gl_FragColor[2] = 1.0;
+}