Ink and Gouache: Toon and Cel-Shaded Materials
- ..
- .metadata66 B
- README.md777 B
- preview.png4.3 KB
- properties.yaml549 B
- shader.wgsl1.4 KB
README.md
toonInk
The ink outline shader of toonMaterials: an inverted hull drawn front-culled behind each outlined object, pushed out in the object-space vertex() hook by ink_width centimetres of real thickness (default 3, the same on every object, thinner on screen with distance) along a blend of the normal and the direction from the mesh's middle (ink_smooth), so the line closes around hard cube corners. The push is in vertex() because a render feature's geometry pass runs that hook and not vertex_clip(). Flat unlit ink_color. The toonInk render feature draws it for every object ToonInk outlines; Its colour is the shared ink colour from ToonLook; its weight stays at the 3 cm it is drawn with (a live change does not reach the line, engine issue #21428).