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