X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fshader-effects%2Fmirror-effect.h;h=724074309c3635165ced9816582dc344033a332d;hb=b1fd7c9ac268691ba02ca0b358b82a6f76d31edb;hp=edf7ffd52ca8458220e616a7196705a276f51c69;hpb=da24507a54c2603006c244b01b5325639baca2d2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/shader-effects/mirror-effect.h b/dali-toolkit/devel-api/shader-effects/mirror-effect.h index edf7ffd..7240743 100644 --- a/dali-toolkit/devel-api/shader-effects/mirror-effect.h +++ b/dali-toolkit/devel-api/shader-effects/mirror-effect.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_MIRROR_EFFECT_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ */ // EXTERNAL INCLUDES -#include +#include namespace Dali { @@ -43,11 +43,11 @@ inline ShaderEffect CreateMirrorEffect() std::string vertexShader( "void main() \n" "{ \n" - " mediump vec3 pos = vec3(aPosition, 0.0)*uSize; \n" + " mediump vec3 pos = aPosition; \n" " pos.y = pos.y * 3.0; \n" " mediump vec4 world = uModelView * vec4(pos,1.0); \n" " gl_Position = uProjection * world; \n" - " vTexCoord = mix( uTextureRect.xy, uTextureRect.zw, aPosition + vec2(0.5) ); \n" + " vTexCoord = mix( sTextureRect.xy, sTextureRect.zw, aTexCoord ); \n" "} \n" ); std::string fragmentShader(