mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
dither on lighting and blurring, with an option to turn them off
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user