Displaying 1 to 3 from 3 results

lerp - bare-bones linear interpolation function

  •    Javascript

In the fashion of small modules and saving keystrokes; this is a bare-bones linear interpolation function. Same as mix in GLSL.Interpolates from start to end using the given alpha.

smoothstep - the smoothstep() function

  •    Javascript

Bare-bones smoothstep function (cubic Hermite interpolation), returning a value in the range 0.0 to 1.0. Performs smoothstep from min to max using the given value, by clamping and then using cubic Hermite interpolation.