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
Implemented a primitive shape renderer to display simple shapes like cubes.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
devel-api
/
shader-effects
/
iris-effect.h
diff --git
a/dali-toolkit/devel-api/shader-effects/iris-effect.h
b/dali-toolkit/devel-api/shader-effects/iris-effect.h
index
2304748
..
6c7f6cd
100644
(file)
--- a/
dali-toolkit/devel-api/shader-effects/iris-effect.h
+++ b/
dali-toolkit/devel-api/shader-effects/iris-effect.h
@@
-55,11
+55,11
@@
inline ShaderEffect CreateIrisEffect()
"\n"
"void main()\n"
"{\n"
"\n"
"void main()\n"
"{\n"
- " mediump vec4 world = uModelView * vec4(aPosition,1.0);\n"
+ " mediump vec4 world = uModelView * vec4(aPosition,
1.0);\n"
" gl_Position = uProjection * world;\n"
" \n"
" gl_Position = uProjection * world;\n"
" \n"
- " vTexCoord =
aTexCoord
;\n"
- " vRelativePosition =
a
TexCoord - uCenter;\n"
+ " vTexCoord =
mix( sTextureRect.xy, sTextureRect.zw, aTexCoord )
;\n"
+ " vRelativePosition =
v
TexCoord - uCenter;\n"
"}\n");
std::string fragmentShader(
"}\n");
std::string fragmentShader(