Added screen shaders
This commit is contained in:
parent
b8ccf3dc3a
commit
7b020ffa84
6 changed files with 158 additions and 39 deletions
16
example/screenShader.frag
Normal file
16
example/screenShader.frag
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue