Resolve visual defect when BorderlineWidth=0.0f 38/265038/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 7 Oct 2021 10:16:37 +0000 (19:16 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 7 Oct 2021 10:16:37 +0000 (19:16 +0900)
commitc2c2513ca81ea0db5a9ccdd99339a9b0ca77bd88
tree607cd3c98c4f9718425b957293e218253482a72d
parenta7947e5dc3202ed5da5414b8a8db685c8d422a7b
Resolve visual defect when BorderlineWidth=0.0f

Normally, Set borderlineWidth=0.0f directly doesn't make visual defect.
But when we animate the borderlineWidth,
we can se borderlineColor near 0.5pixel!

This visual defect occured cause we did hand-made anti-alias.
Now, we just multiply the borderline's with into the borderline's opacity.

This mechanisme is comes from what we draw borderline
when borderlineWidth is less then 1 pixel.

Change-Id: Ic8ef7b451d66ef0a625ad9c8392824d1f6cc6d9a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/graphics/shaders/color-visual-shader.frag
dali-toolkit/internal/graphics/shaders/gradient-visual-shader.frag
dali-toolkit/internal/graphics/shaders/image-visual-shader.frag