Skip to content

Commit 1d849e5

Browse files
committed
fix: shadow color being transparent at maximum Shadow Fade
close #296
1 parent 811f576 commit 1d849e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/src/Runtime/Utilities/ShadowUtil.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public static void DoShadow(List<UIVertex> verts, Vector2[] vectors, Vector2 dis
2121
for (var i = 0; i < iteration; i++)
2222
{
2323
d += distance / (i + 1);
24-
a *= 0.75f;
2524
ApplyShadow(verts, vectors, ref start, ref end, d, a);
25+
a *= 0.75f;
2626
}
2727

2828
// Mark as shadow vertices.

0 commit comments

Comments
 (0)