summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/shader/redsquare.fp
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/es2/shader/redsquare.fp')
-rw-r--r--src/demos/es2/shader/redsquare.fp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/demos/es2/shader/redsquare.fp b/src/demos/es2/shader/redsquare.fp
new file mode 100644
index 0000000..a94f705
--- /dev/null
+++ b/src/demos/es2/shader/redsquare.fp
@@ -0,0 +1,16 @@
+
+#ifdef GL_ES
+ #define MEDIUMP mediump
+ #define HIGHP highp
+#else
+ #define MEDIUMP
+ #define HIGHP
+#endif
+
+varying HIGHP vec4 frontColor;
+
+void main (void)
+{
+ gl_FragColor = frontColor;
+}
+