Log inGet started
World

Butter Up

Branchmain
Branchesmain
Commit6b00375f45

README.md

yard_fx

Sawdust and dust, the way a working yard has both in the air.

  • spray — what the chain throws off a bite. A fan of glowing flecks thrown along the bar and up, plus a few heavier chips that arc out and drop. Pine reads as pale, warm sawdust; oak as darker amber chips; ice as cold blue-green shards.
  • puff — a soft, broad cloud that blooms out of a point, hangs and sinks. The mark a cut landing or a piece being retired leaves behind.
  • dust — the yard's own air. Slow motes born across the whole yard, lit warm by the sodium lamps and drifting on a slow current. It has no end: it runs until it is stopped.

Inputs

  • spray: dir (Vec3, unit — where the chain is throwing material, in the play's own space), tint (Vec3 — the material's colour), sizeScale (Float, how big the flecks are against the default).
  • puff: tint (Vec3).
  • dust: tint (Vec3), rate (Float, flecks born a second across the whole volume), sizeScale (Float).

How it is built

Every entry is the same part, parts/motes: particles born at the origin, thrown along a direction, pushed by gravity and air, and drawn as camera-facing cards made by shaders/mote. A particle carries its own tint and fade in its ShaderData lane, so one material serves a whole field and a fleck fades up and out instead of popping.

graph is fixed by game.fx.api, which plays the entries.