dither on lighting and blurring, with an option to turn them off

This commit is contained in:
minjaesong
2021-10-09 20:34:53 +09:00
parent d4f75c1bd5
commit d28698b668
10 changed files with 1000 additions and 36 deletions

View File

@@ -2,7 +2,8 @@ varying vec4 v_color;
varying vec2 v_texCoords;
uniform sampler2D u_texture;
vec2 boolean = vec2(0.0, 1.0);
void main(void) {
vec3 alpha = texture2D(u_texture, v_texCoords).aaa;
gl_FragColor = vec4(alpha, 1.0);
gl_FragColor = texture2D(u_texture, v_texCoords).aaaa * boolean.yyyx + boolean.xxxy;
}