X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fshader-effects%2Fsoft-button-effect.h;h=f02963e699a27ffdc2fe9c3586f3846a999aa8c5;hb=23ceb4d9eef323cddf0c0f6d13f3a02226926911;hp=710537eaf654db42d08f803fc17e3945287b5ba3;hpb=d9c164e4530e354cd14dc4a1a658070ba55e99b8;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/shader-effects/soft-button-effect.h b/dali-toolkit/devel-api/shader-effects/soft-button-effect.h index 710537e..f02963e 100644 --- a/dali-toolkit/devel-api/shader-effects/soft-button-effect.h +++ b/dali-toolkit/devel-api/shader-effects/soft-button-effect.h @@ -117,7 +117,7 @@ inline ShaderEffect CreateSoftButtonEffect(SoftButtonEffectType type) "void main()\n" "{\n" - " vTexCoord = aTexCoord;\n" + " vTexCoord = mix( sTextureRect.xy, sTextureRect.zw, aTexCoord );\n" // Get the rect coords of the effect region in -1..1 range, i.e. circle centred around the center of the rect // Done in the vertex shader itself to make use of gl interpolation for varying. " vCentredCoord = vec2( ( (vTexCoord.x - uEffectRegion.x)/(uEffectRegion.z - uEffectRegion.x) * 2.0 - 1.0 ), ( (vTexCoord.y - uEffectRegion.y)/(uEffectRegion.w - uEffectRegion.y) * 2.0 - 1.0 ) );\n"