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): voidimport { latentLerpWeights } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
t | number | |
keyCount | number | |
duration | number | |
out | LerpWeights |
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.