efl/src/modules/evas/engines/gl_common/shader/img_12_bgra_nomul_frag.shd

18 lines
360 B
Plaintext

#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D tex;
varying vec2 tex_c;
varying vec2 tex_s[2];
varying vec4 div_s;
void main()
{
vec4 col00 = texture2D(tex, tex_c + tex_s[0]);
vec4 col01 = texture2D(tex, tex_c + tex_s[1]);
gl_FragColor = (col00 + col01) / div_s;
}