Creating and using a simple Shader Graph
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:

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. Choose menu:
Create | Rendering | Lightweight Pipeline Asset
. - In the Inspector, display the project's graphics settings by choosing menu:
Edit | Project Settings | Graphics
. Then, drag myLightweightAsset from the Project panel into the Scriptable Render Pipeline Settings property...