*/OSL*
Shader to generate Edge Detection mask using multiple artistic modes/techniques.
Mode 1: Backside or “rim” from the surface.
<aside> ⚠️ This mode is unstable and doesn’t work with all geometries.
</aside>
Mode 2: Fresnel based mode.
Mode 3: Normalized normal lengths.
Mode 4: Polygon threshold based.
Controls edge detection sensitivity.
“Blurs” detected edges for smoothness.
Color of the detected edges.
Color of non-edge areas.