math docs
    Preparing search index...

    Function smoothstep

    • 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.

      https://en.wikipedia.org/wiki/Smoothstep

      Parameters

      • edge0: number
      • edge1: number
      • x: number

      Returns number