Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function smoothstep

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

      Parameters

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

      Returns number