even more

This commit is contained in:
Andras Schmelczer 2026-08-23 10:27:55 +01:00
commit 8f50ebdb97
2 changed files with 1842 additions and 3095 deletions

View file

@ -13,11 +13,6 @@ const blendSeconds = 0.12;
const maxFrames = 32;
/**
* Replays a server-streamed scalar by interpolating between timestamped
* snapshots at the render time; coasts briefly on the streamed rate of change
* when the buffer runs dry.
*/
export class LinearInterpolator {
private frames: Array<Frame> = [];
private blendOffset = 0;

View file

@ -1,7 +1,6 @@
import { vec2 } from 'gl-matrix';
import { LinearInterpolator } from './linear-interpolator';
// Indexed access, not .x/.y, so it never depends on the vec2 prototype plugin.
export class Vec2Interpolator {
private x: LinearInterpolator;
private y: LinearInterpolator;