The new Shader Graph feature in Unity 2018 is a powerful and exciting feature, opening up shader creation and editing to everyone, without any need for complex mathematics or coding skills. In this recipe, we'll create a simple Shader Graph to generate a checkerboard pattern, and create a Material that uses that shader, and apply it to a 3D cube. The end result will be as follows:
Creating and using a simple Shader Graph
How to do it...
To create and use a simple Shader Graph, follow these steps:
- First, we need to set up the Lightweight Rendering Pipeline. Use the Package Manager to import the Lightweight Rendering Pipeline package.
- In the Project panel, create a new Lightweight Pipeline Asset file named myLightweightAsset...