fix: fix gradation gradient edge (angle gradient)

This commit is contained in:
mob-sakai
2025-01-07 21:09:41 +09:00
parent 92f9611a39
commit 0ef6027371
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -433,6 +433,8 @@ namespace Coffee.UIEffects
private void ApplyGradation(List<UIVertex> verts, Rect rect, Matrix4x4 m, bool canModifyShape)
{
if (gradationMode == GradationMode.None) return;
var a = gradationColor1;
var b = gradationColor2;
var offset = gradationOffset;
@@ -283,9 +283,9 @@ namespace Coffee.UIEffects
time -= scale;
}
while (time < 1f)
while (time <= 1f)
{
if (0 < time && !Contains(results, time))
if (0 <= time && !Contains(results, time))
{
results.Add(time);
}