mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.62k stars 773 forks source link

why DISSOLVE algorithm calculate like this? #207

Open woshihuo12 opened 4 years ago

woshihuo12 commented 4 years ago

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..