Log inGet started
World

Fire For Effect

Branchmain
Branchesmain
Commit37462ca2bd

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) — reads Ord.holes(), opens each hole over TEAR_TIME seconds from the second it is due (eased, so a tear reads as a tear), hands the set to Ridge.deck.setHoles, and drives Ridge.setUnderfire from how many holes are open and how far Film.ruin has climbed.
  • Weld.reset() — closes every hole and takes the underfire back to zero.

Notes

  • It runs first in Film.SLICES, before ffe.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 t it is handed. Seek anywhere and the deck is torn exactly as far as that second says it is.