summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-02-06 12:35:12 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-02-06 12:35:12 +0900
commit88e5369eeeba803d44374a577b09f34d5d0f3016 (patch)
tree1c62f71e53eeac2617698ec4bdf5d70187704cc7
parent73b16a49621d9cf33767ec7634e6e6fd884f3e9d (diff)
Evas masking: Add forgotten file in previous commit
-rw-r--r--src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
index 2264f5c75e..09ea4074f0 100644
--- a/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
+++ b/src/modules/evas/engines/gl_common/shader/evas_gl_shaders.x
@@ -2742,8 +2742,10 @@ static const char const map_mask_vert_glsl[] =
2742 " gl_Position = mvp * vertex;\n" 2742 " gl_Position = mvp * vertex;\n"
2743 " tex_c = tex_coord;\n" 2743 " tex_c = tex_coord;\n"
2744 " col = color;\n" 2744 " col = color;\n"
2745 " // Assume Y-invert on mask, normalize (screen to texture mode coordinates)\n" 2745 " // tex_coorda contains the Y-invert flag\n"
2746 " mask_Position = mvp * vertex * vec4(0.5, tex_coorda.y * 0.5, 0.5, 0.5) + vec4(0.5, 0.5, 0, 0);\n" 2746 " // tex_coordm contains the X,Y position of the mask\n"
2747 " // tex_sample contains the W,H size of the mask (inverted)\n"
2748 " mask_Position = mvp * vertex * vec4(tex_coorda.x * 0.5, tex_coorda.y * 0.5, 0.5, 0.5) + vec4(0.5, 0.5, 0, 0);\n"
2747 " mask_Absolute = vec4(tex_coordm, tex_sample); // x, y, 1/w, 1/h on canvas in GL coords\n" 2749 " mask_Absolute = vec4(tex_coordm, tex_sample); // x, y, 1/w, 1/h on canvas in GL coords\n"
2748 "}\n"; 2750 "}\n";
2749Evas_GL_Program_Source shader_map_mask_vert_src = 2751Evas_GL_Program_Source shader_map_mask_vert_src =