Learning the essentials of Shader Graph
This quick introduction to the Shader Graph workflow was nice, but to truly understand how to use all of these new tools, we are going to go through a real example – the creation of a cel-shaded outlined shader.
Although it is not actively developed anymore, the main inspiration for our toon shader will be Unity’s open source project Chop-Chop (available at https://github.com/UnityTechnologies/open-project-1). Figure 5.5 shows a screenshot of what we are aiming for:
Figure 5.5 – Screenshot of Chop-Chop, Unity’s first open source project
In this section, we will first discuss the features we want our shader to have, then implement each in turn: the albedo, the alpha clipping, the emission, and the specular.
An overview of the toon shader
Before diving into the implementation of our shader, let’s quickly list the different features we want it to have. To recreate something...