mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-04 23:55:17 +02:00
17 lines
312 B
GLSL
17 lines
312 B
GLSL
|
|
uniform sampler2D v_texture;
|
|
|
|
in vec2 v_texCoord;
|
|
in vec2 v_blurCoord[2];
|
|
|
|
out vec4 fragColor;
|
|
|
|
void main() {
|
|
lowp vec4 frag = vec4(0, 0, 0, 0);
|
|
|
|
frag += texture(v_texture, v_texCoord);
|
|
frag += texture(v_texture, v_blurCoord[0]);
|
|
frag += texture(v_texture, v_blurCoord[1]);
|
|
|
|
fragColor = frag / 3.0;
|
|
}
|