Skip to content

Commit f74279f

Browse files
committed
fix: incorrect transparency when applying the shiny filter to TextMeshProUGUI
close #287
1 parent 3d23cbf commit f74279f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Packages/src/Shaders/UIEffect.cginc

+4
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ half4 apply_transition_filter(half4 color, const float alpha)
328328
color.rgb *= (1 - inv_lerp(0.85, 1.0, bandLerp * 1.3)) * color.a;
329329
return color;
330330
}
331+
#elif TRANSITION_SHINY && UIEFFECT_TEXTMESHPRO
332+
{
333+
color.rgb *= color.a;
334+
}
331335
#endif
332336

333337
color.rgb = lerp(color.rgb, bandColor, bandLerp * softLerp);

0 commit comments

Comments
 (0)