Skip to content

five-on-it / apps/client/src/renderer/marks

apps/client/src/renderer/marks ​

Tyre marks as data: a ring buffer of quads laid on the ground along each sliding wheel's path, which fade over MARK_SECONDS and give their slot to the next once gone (or, with every slot taken, the oldest gives way), so a long session costs no more than a short one. A wheel's trail is a ribbon: each quad starts on the edge the last one ended on, so a slide reads as one continuous mark around a bend. The arrays are laid out for one mesh (effects.ts uploads them): four corners a quad (12 floats of position, 16 of colour with the opacity in the fourth), two triangles counter-clockwise seen from above. Another ring of the same quads keeps the blood stains (TyreMarks.splat): a splat each, an uneven four-cornered blot.

Classes ​

Interfaces ​

Variables ​