Luna::smoothstep

f32 smoothstep(f32 f1, f32 f2, f32 t)

Performs smoothstep interpolation on the given values.

Parameters

  • in f1

    The first value to interpolate.

  • in f2

    The second value to interpolate.

  • in t

    The interpolation weight to use. The value is clamped to [0, 1] before use.

Return value

Returns the interpolated value.