Log inGet started
World

Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks

README.md

ToonInkRuntime (module)

The runtime behind toonBlocks' toon ink line, on every player's machine. While a line block (toonOutline, toonSticker, toonStickerBlack, toonTintLine, toonFarLine, the pen, comic, brush, pencil, chalk, character and poster lines, or any block on the toonOutline shader) is live in the scene's style stack, it draws the line:

  • The shared line of every object that has no line of its own grows from the depth edges of the frame (where the surface beside a pixel stands a real step farther away), through the engine's jump-flood outline (its seed and flood shaders) and toonBlocks' composite. It needs no list of objects: a thing that appears gets its line the frame it appears, a removed thing loses it the frame it goes, a new material, a hidden mesh or a swapped mesh change nothing here, and a wall or floor in front of an object hides its line. A still frame replays the same passes.
  • Objects with a line of their own (a ToonOutline override, a group-masked entry, objects toonMaterials inks itself, excluded objects) are a few, found from small engine indexes, and drawn as their own groups; skinned characters keep an inverted hull, which draws the lines inside their silhouette.
  • Per-material rules and sphere masks need each object's material or place, so with either in the stack every object is worked out one by one (budgeted per frame, read again after component writes).

It reads only synced state (the stack, ToonOutline components, the ToonOutlineRules entity), so every player, a late joiner included, draws the same lines. ToonOutlines is the same module under its old name.

API: start(), rescan(), clearAll(), shellsOf(target), status() (fast, shared, shells, rims, groups, targets, lastError, prof), costTotal() (script milliseconds spent since load), isOutlineBlock(blockId).

Known limits

  • Two engines on one account join as one player, so a two-player check needs two accounts or two machines (#14448).
  • A world boot can wait about 30 s on a network handshake before any content starts (#24669).
  • The web build was not checked from here (#20946).

The package README's Known limits lists the rest.