projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the custom shader effects to resize the geometry
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
shader-effects
/
mirror-effect.h
diff --git
a/dali-toolkit/devel-api/shader-effects/mirror-effect.h
b/dali-toolkit/devel-api/shader-effects/mirror-effect.h
index
06eb019
..
edf7ffd
100644
(file)
--- a/
dali-toolkit/devel-api/shader-effects/mirror-effect.h
+++ b/
dali-toolkit/devel-api/shader-effects/mirror-effect.h
@@
-43,11
+43,11
@@
inline ShaderEffect CreateMirrorEffect()
std::string vertexShader(
"void main() \n"
"{ \n"
std::string vertexShader(
"void main() \n"
"{ \n"
- " mediump vec3 pos =
aPosition
; \n"
+ " mediump vec3 pos =
vec3(aPosition, 0.0)*uSize
; \n"
" pos.y = pos.y * 3.0; \n"
" mediump vec4 world = uModelView * vec4(pos,1.0); \n"
" gl_Position = uProjection * world; \n"
" 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( uTextureRect.xy, uTextureRect.zw, aPosition + vec2(0.5) );
\n"
"} \n" );
std::string fragmentShader(
"} \n" );
std::string fragmentShader(