Skip to content

Commit a6b346a

Browse files
committed
BugFix(NoiseColor)
1 parent c22ef8c commit a6b346a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/Runtime/TextMeshProGeometryAnimator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private void UpdateAnimation()
441441
var noise = tex.GetPixel(Mathf.FloorToInt(uv.x % 1.0f * tex.width), Mathf.FloorToInt(uv.y % 1.0f * tex.height));
442442

443443
float ratio = animationData.colorNoise.curve.Evaluate(CalcAnimationTime(time, i, animationData.colorNoise));
444-
color0 = Color.white + (noise * 2.0f - Color.white) * ratio;
444+
color0 = color0 + (noise * 2.0f - Color.white) * ratio;
445445
color1 = color2 = color3 = color0;
446446
}
447447

0 commit comments

Comments
 (0)