Create night_screen.frag
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
precision mediump float;
|
||||||
|
varying vec2 v_texcoord;
|
||||||
|
uniform sampler2D tex;
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
vec4 color = texture2D(tex, v_texcoord);
|
||||||
|
|
||||||
|
color.r *= 1.0;
|
||||||
|
color.g *= 0.75;
|
||||||
|
color.b *= 0.55;
|
||||||
|
|
||||||
|
gl_FragColor = color;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user