An improved version of the math.smoothstep function which has zero 1st and 2nd order derivatives at t=0 and t=1.
See https://en.wikipedia.org/wiki/Smoothstep#Variations for more details.
The value of x at which the result is 0. Can be greater than max for a falling ramp.
The value of x at which the result is 1.
The value to interpolate.
The smoothly interpolated value clamped between zero and one.
math.smootherstep(0, 10, 5); // returns 0.5 Copy
math.smootherstep(0, 10, 5); // returns 0.5
An improved version of the math.smoothstep function which has zero 1st and 2nd order derivatives at t=0 and t=1.
See https://en.wikipedia.org/wiki/Smoothstep#Variations for more details.