fix: incorrect transparency when applying the shiny filter to TextMeshProUGUI

close #287
This commit is contained in:
mob-sakai
2024-12-24 10:17:52 +09:00
parent 3d23cbfcdb
commit f74279fb83
+4
View File
@@ -328,6 +328,10 @@ half4 apply_transition_filter(half4 color, const float alpha)
color.rgb *= (1 - inv_lerp(0.85, 1.0, bandLerp * 1.3)) * color.a;
return color;
}
#elif TRANSITION_SHINY && UIEFFECT_TEXTMESHPRO
{
color.rgb *= color.a;
}
#endif
color.rgb = lerp(color.rgb, bandColor, bandLerp * softLerp);