DriftTexture · function
recordOverlayWrite
Record a write. Stored as f32, which is what makes the encoding round-trip exactly.
Explained in DriftTexture.
function recordOverlayWrite(journal: OverlayJournal, frame: number, u: number, v: number, radius: number, channel: number, value: number): voidimport { recordOverlayWrite } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
journal | OverlayJournal | |
frame | number | |
u | number | |
v | number | |
radius | number | |
channel | number | |
value | number |
In depth
A journal of f64 written out as f32 reproduces a nearly identical mark, and "nearly" in a
replay is a divergence that appears at the worst moment — the fingerprint that no longer matches
a recording, for a reason nobody would look for in a texture.