Change-Id: I0665971a7748253735ff9c00ae3204b00629fde1
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
PreprocessPotential(vCutoutCornerRadius, vPositionFromCenter, uSize.xy * 0.5, 0.0);
// Decrease potential range, to avoid alias make some hole.
- gMinOutlinePotential -= gPotentialRange * 0.5;
- gMaxOutlinePotential -= gPotentialRange * 0.5;
+ gMinOutlinePotential += gPotentialRange * ((float)uCutoutOutside - 0.5);
+ gMaxOutlinePotential += gPotentialRange * ((float)uCutoutOutside - 0.5);
discardOpacity = smoothstep(gMinOutlinePotential, gMaxOutlinePotential, gPotential);
}