I created a Post-Processing Toon Shader using Unity's Shader Graph. It employs basic cell shading with a subtle setup and edge detection using Robert Cross Outlines based on Depth, Normal, and Color Difference (HSV).

Implementing this would be straightforward in plain HLSL, but it was my first time using Shader Graph. Figuring out how to utilize the color buffer alone took me several hours, in addition to learning how to obtain screen width and read texture, etc

The result adds some additional stylization to the scenery while remaining subtle, achieved by interpolating (lerping) between the input and the Toon Shader.




  • Keine Stichwörter