Skip to content

smoothstep

smoothstep(edge0, edge1, x): number

Defined in: src/modules/math/math.ts:52

Smooth Hermite interpolation: 0 at or below edge0, 1 at or above edge1, with a smooth (zero-derivative) ramp between. Mirrors GLSL smoothstep.

number

number

number

number