Cleaning up Visual::Base
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / shader-effects / mirror-effect.h
index 06eb019..a4f8dad 100644 (file)
@@ -47,7 +47,7 @@ inline ShaderEffect CreateMirrorEffect()
       "  pos.y = pos.y * 3.0;                       \n"
       "  mediump vec4 world = uModelView * vec4(pos,1.0); \n"
       "  gl_Position = uProjection * world;         \n"
-      "  vTexCoord = aTexCoord;                     \n"
+      "  vTexCoord = mix( sTextureRect.xy, sTextureRect.zw, aTexCoord ); \n"
       "}                                            \n" );
 
   std::string fragmentShader(