🎚️ Interpolation: Lerp, Smoothstep and Easing
Blending smoothly from one value to another is everywhere in graphics: colours, positions, textures, animation. Meet lerp, its reverse, remapping, smoothstep and easing curves.
Blending smoothly from one value to another is everywhere in graphics: colours, positions, textures, animation. Meet lerp, its reverse, remapping, smoothstep and easing curves.
Sine and cosine are just the x and y of a point going round a circle. That simple idea gives you rotation, smooth waves, orbits and animation. Spin the point and shape a wave.
The vertex shader runs once for every vertex, placing it on screen and passing data along. Edit one live: make waves, twist shapes and see exactly what it can and can’t do.