Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks
- ..
- .metadata130 B
- README.md1.3 KB
- module.wgsl17.5 KB
README.md
skStrokes (shader module)
Hand-laid strokes that build up by tone, shared by every block that shades with marks (pencil, charcoal, conte, ballpoint, hatching, scribbles) and by any material that wants the same marks on one object. Two shared ideas: which way strokes run (sks_direction: follow the form, one fixed angle, crossed, scribbled; from the surface normal and world axes only, so strokes never turn as the camera moves) and stacked strokes by tone (sks_layer, sks_stack: darker tones add strokes on top of the lighter tone's strokes, layer by layer, each stroke fading in at its own threshold). Strokes come in patches laid in 3D cells on the position you pass (world position for still things, the object's own position for a moving one) and keep their size on screen at any distance by blending two octaves. Pure math with no bindings: include it after skPatterns with #include "~styleKit.shaders.skStrokes". Used by pencilBlocks' shade blocks and its hero material.
Known limits
- A pass reads the scene's depth only when it also writes the scene picture (#24550), and an unknown blend name draws as replace (#24551).
- A per-object value cannot reach a geometry pass (#24549).
The package README's Known limits lists the rest.