Chapter 13: Shader Graph – 2D
First released in Unity 2018.1, Shader Graph allows you to create shaders using a visual interface by connecting nodes instead of having to dive into the code. This will allow developers, including artists, to create shaders in a similar manner to material editors in 3D modeling programs such as Autodesk Maya and Blender, or the material editor in the Unreal Engine. At the time of writing, Shader Graph is only supported for certain kinds of projects and doesn't allow the same flexibility as writing shaders from scratch.
In this chapter, you will learn the following recipes:
- Creating a URP-based Shader Graph project
- Implementing a simple Shader Graph
- Exposing properties to the Inspector via Shader Graph
- Implementing a Sprite Outline Shader
Note
Shader Graph is a node-based visual scripting language and as such we use images to illustrate the code written. If you have difficulty looking at any of the images in the chapter...