Smooth Hermite step from 0 to 1 as x goes from edge0 to edge1, matching GLSL smoothstep. Clamped outside the edges, with zero slope at both of them. Equal edges act as a step at edge0, matching what GPU clamp typically produces.
x
edge0
edge1
smoothstep
clamp
https://en.wikipedia.org/wiki/Smoothstep
Smooth Hermite step from 0 to 1 as
xgoes fromedge0toedge1, matching GLSLsmoothstep. Clamped outside the edges, with zero slope at both of them. Equal edges act as a step atedge0, matching what GPUclamptypically produces.https://en.wikipedia.org/wiki/Smoothstep