blob: ee8406e9e11a4d897a4d7d7e2f9cf0803e16a9c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
uniform sampler2D u_image;
varying vec2 v_coords[3];
void main() {
vec4 sum = vec4(0.0);
sum += texture2D(u_image, v_coords[0]) * 0.40261994689424746;
sum += texture2D(u_image, v_coords[1]) * 0.2986900265528763;
sum += texture2D(u_image, v_coords[2]) * 0.2986900265528763;
gl_FragColor = sum;
}
|