aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/screenShader.frag
blob: 5eeac17a7d1633508a3bf08fbbc35581b57307e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}