Skip to content

Commit c893cb0

Browse files
committed
fix: fix cutoff transition effect
1 parent 7374747 commit c893cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/src/Shaders/UIEffect.cginc

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ half4 apply_transition_filter(half4 color, const float alpha)
300300
}
301301
#elif TRANSITION_CUTOFF // Transition.Cutoff
302302
{
303-
color *= step(0.001, color.a * alpha - _TransitionRate);
303+
color *= step(0.001, alpha - _TransitionRate);
304304
}
305305
// Transition.Dissolve/Shiny/ShinyOnly/Melt
306306
#elif TRANSITION_DISSOLVE || TRANSITION_SHINY || TRANSITION_MASK || TRANSITION_MELT || TRANSITION_BURN

0 commit comments

Comments
 (0)