mob-sakai/UIEffect

why DISSOLVE algorithm calculate like this?

woshihuo12 opened this issue · 0 comments

float factor = alpha - effectFactor * ( 1 + width ) + width;
fixed edgeLerp = step(factor, color.a) * saturate((width - factor)*16/ softness);

i want know why calculate like this. can have more explain?

very thanks..