Fire For Effect
README.md
weld
The joint between the ordnance schedule and the place it happens to.
ffe.ordnance owns when and where the cloud deck is torn — Ord.holes() is six
holes, each with a tear second, a radius and a fire strength. ffe.ridge owns
the surface that tears — Ridge.deck.setHoles{...} puts the three nearest holes
onto every deck tile's shader lanes, and Ridge.setUnderfire(v) is how much fire
the cloud is catching from below.
Neither slice called the other, so the deck stayed whole for the whole film and the arc the demo is built on — shot 16 is shot 1's station over a torn sky-floor — did not read. This module is that call and nothing else.
Exports
Weld.build(root)— makes nothing; the module owns no entities.Weld.tick(t, dt)— readsOrd.holes(), opens each hole overTEAR_TIMEseconds from the second it is due (eased, so a tear reads as a tear), hands the set toRidge.deck.setHoles, and drivesRidge.setUnderfirefrom how many holes are open and how farFilm.ruinhas climbed.Weld.reset()— closes every hole and takes the underfire back to zero.
Notes
- It runs first in
Film.SLICES, beforeffe.ridge, so the deck tick that consumes the hole set sees the current film second's holes rather than the previous frame's. - Like every slice it is a pure function of the
tit is handed. Seek anywhere and the deck is torn exactly as far as that second says it is.