toonInk.renderFeature
This package holds more than this page lists. See all of its files in its world.
README.md
toonInk (render feature)
Draws toonBlocks' toon ink outline for every plain (non-skinned) object as a screen-space rim, on the engine's own jump-flood outline shaders (@builtin::shaders.outline_mask, @builtin::renderFeatures.shaders.outline_jfa_seed, _flood, _composite): one mask, seed, flood and composite chain per (colour, width) group, composited into the scene colour at afterLighting and, in the same pass, into an ink mask that styleKit's surface copy reads as drawn ink, so the light and fill blocks leave the line as drawn. Depth tested against the silhouette, so a line hides behind whatever stands in front of its object; antialiased and a steady pixel width, so it does not crawl when the camera moves. Started and stopped by ToonOutlines; nothing to set up.
Known limits
- Its passes are queued again every frame, even when nothing changed (#24548).
- 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).
- The camera gives no near and far planes, so depth terms are read from the view-projection matrix (#24514).
The package README's Known limits lists the rest.