diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/shader/img_mask_frag.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/shader/img_mask_frag.h b/libraries/evas/src/modules/engines/gl_common/shader/img_mask_frag.h new file mode 100644 index 0000000..1b28128 --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_common/shader/img_mask_frag.h | |||
@@ -0,0 +1,15 @@ | |||
1 | "#ifdef GL_ES\n" | ||
2 | "#ifdef GL_FRAGMENT_PRECISION_HIGH\n" | ||
3 | "precision highp float;\n" | ||
4 | "#else\n" | ||
5 | "precision mediump float;\n" | ||
6 | "#endif\n" | ||
7 | "#endif\n" | ||
8 | "uniform sampler2D tex, texm;\n" | ||
9 | "varying vec4 col;\n" | ||
10 | "varying vec2 tex_c, tex_cm;\n" | ||
11 | "void main()\n" | ||
12 | "{\n" | ||
13 | " gl_FragColor = texture2D(texm, tex_cm.xy).aaaa * texture2D(tex, tex_c.xy).rgba * col;\n" | ||
14 | "}\n" | ||
15 | "\n" | ||