Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks
- ..
- .metadata111 B
- README.md787 B
- module.wgsl2.2 KB
README.md
skSoft (shader module)
Reads the stack's soft field (sk_soft) in a styleKit block: a half-resolution, depth-aware blur of what the block reads, with .a telling how much of it came from the same surface. sk_soft_at(uv) samples it and sk_soft_wide(uv, px, angle) reaches further with a ring of taps. Include it after skCommon in a block that lists soft under reads and declares sk_soft (a texture) after the shared header. Washes, bleeds, edge darkening and blooms read it, and so can any later block.
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.