This commit is contained in:
parent
462729d865
commit
50758505d5
1 changed files with 7 additions and 4 deletions
|
|
@ -1,16 +1,19 @@
|
||||||
//
|
//
|
||||||
// Example blue light filter shader.
|
// Example blue light filter shader.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#version 300 es
|
||||||
|
|
||||||
precision mediump float;
|
precision mediump float;
|
||||||
varying vec2 v_texcoord;
|
in vec2 v_texcoord;
|
||||||
|
layout(location = 0) out vec4 fragColor;
|
||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
||||||
vec4 pixColor = texture2D(tex, v_texcoord);
|
vec4 pixColor = texture(tex, v_texcoord);
|
||||||
|
|
||||||
pixColor[2] *= 0.8;
|
pixColor[2] *= 0.8;
|
||||||
|
|
||||||
gl_FragColor = pixColor;
|
fragColor = pixColor;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue