Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks
- ..
- .metadata124 B
- README.md2.6 KB
- block.yaml1.3 KB
README.md
Sketch line (styleBlock, Line)
Draws soft, broken pencil lines over edges of shape and colour, doubled and redrawn a little on every step of the held clock, for a hand-sketched or storyboard look.
Settings: width (1.3 reference px), lead (graphite grey), darkness (0.7), colourEdges (0.5), strokes (2), jitter (1.2 px), breakup (0.35), breakScale (3 per metre), fadeEnd (80 m), wobble (1). Low quality draws one stroke per edge, medium two.
The strokes multiply the picture with the pencil colour instead of covering it, so colour and paper show through them. Breaks in the strokes are drawn in surface coordinates, so they stay on the object as the camera moves; only the small redraw offset changes, and it changes on the stack's held clock.
What it gives up in motion
The strokes are redrawn off the edge on every step of the held clock, so lines boil: that is the look, and it runs at the stack's holdRate (8 steps a second by default), never per frame and never faster than the clock. Colour edges are found in the picture itself, so a texture that shimmers makes its strokes shimmer too. On a fast moving skinned character the breaks are taken from world position, so they slide along the body as it moves.
How it treats content
- Opaque things: shape strokes from depth and normals, plus colour strokes.
- Transparent things (glass, water): no shape strokes; strong colour edges seen through them are stroked.
- Particles and smoke: bright particles over a dark background draw colour strokes around them; soft smoke draws few.
- Sky: no shape strokes; strong sky gradients (a sun disc) can draw a faint colour stroke.
- Fog: fog lowers colour contrast, so far strokes fade naturally; shape strokes end at
fadeEnd. - Skinned characters: stroked each frame like any opaque thing; breaks slide on the moving body (see above).
- Foliage: busy; lower
colourEdgesor mask foliage out. - World text: letters get pencil edges; exclude labels that must stay crisp.
- Black stays black: a frame with no light draws no strokes.
Known limits
- It runs on the whole frame after antialiasing, so offscreen captures, mirrors and render-to-texture cameras do not show it (#17427).
- Per-object settings (a style channel or a game role) reach it through the shared object mask, at most eight distinct settings a scene. A per-object value cannot reach a geometry pass, so a per-object look that needs one draws passes of its own (#24549).
- Its passes are queued again every frame, even when nothing changed (#24548).
The package README's Known limits lists the rest.