smoothstep

fnfloat smoothstep(float from, float to, float weight)

Returns the smooth interpolation between from and to by weight using a cubic curve. Eases in and out, with zero first-order derivatives at both endpoints.