Skip to content

Commit

Permalink
fix: fix cutoff transition effect
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Dec 14, 2024
1 parent 7374747 commit c893cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/src/Shaders/UIEffect.cginc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c893cb0

Please sign in to comment.