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>
{
// potential is inside borderline range.
borderlineOpacity = smoothstep(gMinInlinePotential, gMaxInlinePotential, potential);
+
+ // Muliply borderlineWidth to resolve very thin borderline
+ borderlineOpacity *= min(1.0, borderlineWidth);
}
lowp vec3 borderlineColorRGB = borderlineColor.rgb * uActorColor.rgb;
{
// potential is inside borderline range.
borderlineOpacity = smoothstep(gMinInlinePotential, gMaxInlinePotential, potential);
+
+ // Muliply borderlineWidth to resolve very thin borderline
+ borderlineOpacity *= min(1.0, borderlineWidth);
}
lowp vec3 borderlineColorRGB = borderlineColor.rgb * uActorColor.rgb;
{
// potential is inside borderline range.
borderlineOpacity = smoothstep(gMinInlinePotential, gMaxInlinePotential, potential);
+
+ // Muliply borderlineWidth to resolve very thin borderline
+ borderlineOpacity *= min(1.0, borderlineWidth);
}
lowp vec3 borderlineColorRGB = borderlineColor.rgb * uActorColor.rgb;