aboutsummaryrefslogtreecommitdiff
path: root/tests/gl/tutorial2.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gl/tutorial2.frag')
-rw-r--r--tests/gl/tutorial2.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/gl/tutorial2.frag b/tests/gl/tutorial2.frag
new file mode 100644
index 00000000..faa30eaf
--- /dev/null
+++ b/tests/gl/tutorial2.frag
@@ -0,0 +1,11 @@
+#version 150
+// It was expressed that some drivers required this next line to function properly
+precision highp float;
+
+in vec3 ex_Color;
+out vec4 gl_FragColor;
+
+void main(void) {
+ // Pass through our original color with full opacity.
+ gl_FragColor = vec4(ex_Color,1.0);
+}