summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/shader/map_mask_frag.shd
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_common/shader/map_mask_frag.shd')
-rw-r--r--src/modules/evas/engines/gl_common/shader/map_mask_frag.shd7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/shader/map_mask_frag.shd b/src/modules/evas/engines/gl_common/shader/map_mask_frag.shd
index fdc066bdf5..7a7579a357 100644
--- a/src/modules/evas/engines/gl_common/shader/map_mask_frag.shd
+++ b/src/modules/evas/engines/gl_common/shader/map_mask_frag.shd
@@ -6,12 +6,11 @@ precision mediump float;
#endif
#endif
uniform sampler2D tex, texm;
-varying vec2 tex_c;
-varying vec4 mask_Position, col, mask_Absolute;
+varying vec2 tex_c, tex_m;
+varying vec4 col;
void main()
{
// FIXME: Use mask coordinates within its texture
// FIXME: Fix Mach band effect using proper 4-point color interpolation
- vec2 mpos = vec2(mask_Position.xy - mask_Absolute.xy) * mask_Absolute.zw;
- gl_FragColor = texture2D(tex, tex_c.xy).bgra * texture2D(texm, mpos).a * col;
+ gl_FragColor = texture2D(tex, tex_c).bgra * texture2D(texm, tex_m).a * col;
}