aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/screenShader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'example/screenShader.frag')
-rw-r--r--example/screenShader.frag16
1 files changed, 16 insertions, 0 deletions
diff --git a/example/screenShader.frag b/example/screenShader.frag
new file mode 100644
index 00000000..5eeac17a
--- /dev/null
+++ b/example/screenShader.frag
@@ -0,0 +1,16 @@
+//
+// Example blue light filter shader.
+//
+
+precision mediump float;
+varying vec2 v_texcoord;
+uniform sampler2D tex;
+
+void main() {
+
+ vec4 pixColor = texture2D(tex, v_texcoord);
+
+ pixColor[2] *= 0.8;
+
+ gl_FragColor = pixColor;
+}