X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fshader-effects%2Fsoft-button-effect.h;h=55adafb6d5727938cea3e1b5c6ef21ea93f3b353;hb=602711f643eed100940eb0b54c1dacacce2ae27e;hp=710537eaf654db42d08f803fc17e3945287b5ba3;hpb=d3a00dc1c24ece2488696c0b518013ad6d97969b;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..55adafb 100644 --- a/dali-toolkit/devel-api/shader-effects/soft-button-effect.h +++ b/dali-toolkit/devel-api/shader-effects/soft-button-effect.h @@ -117,11 +117,11 @@ inline ShaderEffect CreateSoftButtonEffect(SoftButtonEffectType type) "void main()\n" "{\n" - " vTexCoord = aTexCoord;\n" + " vTexCoord = mix( uTextureRect.xy, uTextureRect.zw, aPosition + vec2(0.5) );\n;\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" - " gl_Position = uMvpMatrix * vec4(aPosition, 1.0);\n" + " gl_Position = uMvpMatrix * vec4(aPosition*uSize.xy, 0.0, 1.0);\n" "}\n"; std::string fragmentSourceFixed;