mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-21 10:22:37 +08:00
fix: fix gradation gradient edge (angle gradient)
This commit is contained in:
@@ -433,6 +433,8 @@ namespace Coffee.UIEffects
|
|||||||
|
|
||||||
private void ApplyGradation(List<UIVertex> verts, Rect rect, Matrix4x4 m, bool canModifyShape)
|
private void ApplyGradation(List<UIVertex> verts, Rect rect, Matrix4x4 m, bool canModifyShape)
|
||||||
{
|
{
|
||||||
|
if (gradationMode == GradationMode.None) return;
|
||||||
|
|
||||||
var a = gradationColor1;
|
var a = gradationColor1;
|
||||||
var b = gradationColor2;
|
var b = gradationColor2;
|
||||||
var offset = gradationOffset;
|
var offset = gradationOffset;
|
||||||
|
|||||||
@@ -283,9 +283,9 @@ namespace Coffee.UIEffects
|
|||||||
time -= scale;
|
time -= scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (time < 1f)
|
while (time <= 1f)
|
||||||
{
|
{
|
||||||
if (0 < time && !Contains(results, time))
|
if (0 <= time && !Contains(results, time))
|
||||||
{
|
{
|
||||||
results.Add(time);
|
results.Add(time);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user