Hi,
I suggest
float softstep(float f,float x,float edge) {
float y = edge - x;
return 1.0 / (1.0 + exp(-f * y));
}
I have an application for this, but I am not allowed to post links here.
Regards
Thorsten Kiefer
Hi,
I suggest
float softstep(float f,float x,float edge) {
float y = edge - x;
return 1.0 / (1.0 + exp(-f * y));
}
I have an application for this, but I am not allowed to post links here.
Regards
Thorsten Kiefer
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.