summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd')
-rw-r--r--src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd b/src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd
new file mode 100644
index 0000000000..e278ea63e7
--- /dev/null
+++ b/src/modules/evas/engines/gl_common/shader/rect_mask_frag.shd
@@ -0,0 +1,14 @@
1#ifdef GL_ES
2#ifdef GL_FRAGMENT_PRECISION_HIGH
3precision highp float;
4#else
5precision mediump float;
6#endif
7#endif
8uniform sampler2D texm;
9varying vec4 col;
10varying vec4 coord_m;
11void main()
12{
13 gl_FragColor = texture2D(texm, coord_m.xy).a * col;
14}