summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/shader/img_mask_nomul_frag.shd
blob: e5336f4246713e4a2a526bd5e8ae5b3798430cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifdef GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
uniform sampler2D tex;
uniform sampler2D texa;
varying vec2 coord_c;
varying vec2 coord_a;
void main()
{
   gl_FragColor.rgb = texture2D(tex, coord_c.xy).rgb * texture2D(texa, coord_a).g;
   gl_FragColor.a = texture2D(tex, coord_c.xy).a * texture2D(texa, coord_a).g;
}