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

16 lines
296 B
Plaintext

#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D tex, texm;
varying vec4 col;
varying vec2 tex_c, tex_cm;
void main()
{
gl_FragColor = texture2D(texm, tex_cm.xy).aaaa * texture2D(tex, tex_c.xy).rgba * col;
}