From 7b020ffa84e64d0734709b2489e1da5463689e61 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 1 Dec 2022 13:36:07 +0000 Subject: Added screen shaders --- example/screenShader.frag | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 example/screenShader.frag (limited to 'example') 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; +} -- cgit v1.2.3