Let CornerRadius / Borderline works on very small visual 01/279801/5
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 18 Aug 2022 05:10:52 +0000 (14:10 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 22 Aug 2022 06:36:39 +0000 (15:36 +0900)
commitfc46ca46ea867895ec0de5d59c4250bc85aa7bc8
treea5cba3e7b758eb947fe6fd94d3d0b08f3a36803a
parentd9217276a84bb09d867dcd8860b25e8517c3ebe6
Let CornerRadius / Borderline works on very small visual

We setup the range of anti-alias as fixed value; 1.0.
It cause we only assume that user will use this visual at pixel-unit.

But if we try to use ImageView / Control in 3D world,
The size of visual can be smaller than 1.0.
In this case, CornerRadius / Borderline break down.

This patch make the range of anti-alias relative with visual size.
So even if we setup the view size smaller than 1.0,
it will show the result like 50x50 size of visual.

Change-Id: I17614783c2ec8c4a38b51330ba166160d7d4db16
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