animeBlocks.package
- ..
- .metadata73 B
- README.md2.9 KB
- preview.png12.7 KB
- properties.yaml2.3 KB
- shader.wgsl6.7 KB
This package holds more than this page lists. See all of its files in its world.
README.md
The full-frame pass of the anime ink line blocks (animeBlocks): animeLineTV, animeLineColour, animeLineAction, animeLine80s, animeLineSoft.
Every anime line block runs the one animeLine shader with its own defaults, so any of them swaps for any other with StyleKit.swap("line", "<block>") ({ keepSettings = true } carries your tuning). Settings: width (silhouette, reference pixels), innerWidth (creases and folds), creaseAngle, depthJump, innerJump, fadeStart, fadeEnd, farWidth (share of the width left far away), innerFadeEnd, colour, tint (0 the ink colour, 1 a darker shade of the colour under the line), tintDarken, tintSaturation, brush, brushAngle, breakup, softness, opacity, skipInk, speckle.
The line is drawn on the near side of every silhouette (found where depth drops away behind a surface), so a character in front of a wall gets one line, never one on each side. Inner lines come from creases (the surface turning by more than creaseAngle) and folds (a small step in depth). Per object: a StyleChannel line weight scales both widths (2 twice as heavy, 0 none).
No double outlines: with skipInk at 1 the line steps aside wherever toon ink is already drawn (toonBlocks' hull lines on characters, toonMaterials' ToonInk), and it sits in the Line slot like every other line block, so a second line block in the stack is laid over it by strength instead of drawn twice. To change line styles use AnimeBlocks.useLine(id), which swaps the stack's Line entry and switches other Line entries off.
What it gives up in motion
The line follows silhouettes and creases exactly as they move, so it stays on characters. Width is kept in the picture (reference pixels) and thins with distance from fadeStart to fadeEnd. brush and breakup vary along surfaces and change only on the held clock (the stack's holdRate, drawings a second), so action lines boil gently; at 0 the line is still. Thin far lines fade rather than break into dashes.
How it treats content
- Opaque things: silhouette and crease lines from depth and normals.
- Transparent things (glass, water): not in the depth, so no line is drawn round them; the line of what is behind shows through.
- Particles and smoke: no line (not in the depth).
- Sky: never lined; the silhouette against the sky is lined on the object's side.
- Fog: lines are drawn over fog at full strength until
fadeEnd; raisefarWidthto 0 for fog to swallow far lines. - Skinned characters: lined every frame, inner lines on folds of the body and clothes.
- Foliage: alpha-cut leaves are lined at their outer edges; far foliage thins away with distance (
fadeEnd). - World text: lined like any opaque surface; exclude labels a player must read.
- Black stays black: returns through styleKit's
sk_finish; ink is only ever darker than the frame it covers. - Dim rooms: a line only darkens, so it never brightens a dim room.