ink.shaderModule
- .metadata33 B
- README.md678 B
- module.wgsl2.5 KB
README.md
ink
The painterly.surface.ink shader module provides the functionality for surfaces to request a drawn outline from the rendering frame. It publishes an "ink code" through the engine's material channels, which includes a weight (0-1, determining line width and visibility distance), an id (a unique number for the object and its part, generated by inkId), a key color (used to detect color differences for outlining), and the surface normal N. This allows the frame to draw lines around entities and between different parts of an object without requiring additional tags or draw calls. Any surface shader can include this module to integrate with the ink system.