DriftTexture · function

latentLerpWeights

The two keys surrounding this time, and how far between them it sits.

Explained in DriftTexture.

function latentLerpWeights(t: number, keyCount: number, duration: number, out: LerpWeights): void
import { latentLerpWeights } from '@driftengine/texture';

Parameters

ParameterTypeDescription
tnumber
keyCountnumber
durationnumber
outLerpWeights

In depth

At or past the end it lands on the last key with no mix, rather than wrapping — a caller that wants looping says so by wrapping t before calling.