What it does
vec3.lerp takes a, b and t.
Signature
vec3.lerp(a, b, t)Arguments
abt
Example · generated
function update(dt) { vec3.lerp(1, 0.4, 0.5);}vec3.lerp is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.