mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
fix: fix cutoff transition effect
This commit is contained in:
@@ -300,7 +300,7 @@ half4 apply_transition_filter(half4 color, const float alpha)
|
||||
}
|
||||
#elif TRANSITION_CUTOFF // Transition.Cutoff
|
||||
{
|
||||
color *= step(0.001, color.a * alpha - _TransitionRate);
|
||||
color *= step(0.001, alpha - _TransitionRate);
|
||||
}
|
||||
// Transition.Dissolve/Shiny/ShinyOnly/Melt
|
||||
#elif TRANSITION_DISSOLVE || TRANSITION_SHINY || TRANSITION_MASK || TRANSITION_MELT || TRANSITION_BURN
|
||||
|
||||
Reference in New Issue
Block a user