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
Extending Style - Adding Strikethrough
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
graphics
/
shaders
/
gradient-visual-shader.frag
diff --git
a/dali-toolkit/internal/graphics/shaders/gradient-visual-shader.frag
b/dali-toolkit/internal/graphics/shaders/gradient-visual-shader.frag
index
80090f8
..
a30bf5e
100644
(file)
--- a/
dali-toolkit/internal/graphics/shaders/gradient-visual-shader.frag
+++ b/
dali-toolkit/internal/graphics/shaders/gradient-visual-shader.frag
@@
-207,18
+207,23
@@
void main()
if(abs(vPosition.x) < vOptRectSize.x && abs(vPosition.y) < vOptRectSize.y)
{
OUT_COLOR = textureColor;
if(abs(vPosition.x) < vOptRectSize.x && abs(vPosition.y) < vOptRectSize.y)
{
OUT_COLOR = textureColor;
- return;
}
}
- PreprocessPotential();
+ else
+ {
+ PreprocessPotential();
#endif
#if IS_REQUIRED_BORDERLINE
#endif
#if IS_REQUIRED_BORDERLINE
- textureColor = convertBorderlineColor(textureColor);
+
textureColor = convertBorderlineColor(textureColor);
#endif
#endif
- OUT_COLOR = textureColor;
+
OUT_COLOR = textureColor;
#if IS_REQUIRED_ROUNDED_CORNER
#if IS_REQUIRED_ROUNDED_CORNER
- mediump float opacity = calculateCornerOpacity();
- OUT_COLOR *= opacity;
+ mediump float opacity = calculateCornerOpacity();
+ OUT_COLOR *= opacity;
+#endif
+
+#if IS_REQUIRED_ROUNDED_CORNER || IS_REQUIRED_BORDERLINE
+ }
#endif
}
#endif
}