GLSL-style smoothstep: the Hermite curve 3t²−2t³ remapped so it is 0 at (or below) edge0, 1 at (or above) edge1, and 0.5 at their midpoint. A degenerate edge0 >= edge1 is treated as a hard step at edge0 (no NaN from a zero-width divide).
3t²−2t³
edge0
edge1
edge0 >= edge1
GLSL-style smoothstep: the Hermite curve
3t²−2t³remapped so it is 0 at (or below)edge0, 1 at (or above)edge1, and 0.5 at their midpoint. A degenerateedge0 >= edge1is treated as a hard step atedge0(no NaN from a zero-width divide).