To create and use a simple Shader Graph, follow these steps:
- Create a new Unity 3D project.
- First, we need to set up the Lightweight Render Pipeline (LWRP). Use Package Manager to import the Lightweight Render Pipeline package.
- In the Project window, create a new Lightweight Pipeline asset file named myLightweightAsset by going to menu: Create | Rendering | Lightweight Pipeline Asset.
- In the Inspector window, display the project's graphics settings by going to Edit | Project Settings | Graphics. Then, drag myLightweightAsset from the Project window into the Scriptable Render Pipeline Settings property:

Figure 12.8 – Dragging myLightweightAsset into Scriptable Render Pipeline Settings
- In the Project window, create a new Physically-Based Rendering (PBR) Shader Graph named myShaderGraph by going to Create | Shader | PBR Graph.
- In the Project window, create a new material named m_cube by...