Implementing a simple a Shader Graph
To get acquainted with the interface of the Shader Graph, let's create something similar to what we have seen before by sampling a texture to create a simple shader.
Getting ready
Ensure that you have created a project using the Lightweight Render Pipeline
, as described in the Create a Shader Graph project recipe. Afterward, complete the following steps:
- Create a new scene, if you haven't done so already, by going to
File | New Scene
- Afterward, we need to have something to show our shader, so let's create a new sphere by going to
Game Object | 3D Object| Sphere
:

How to do it...
We will start off by creating a simple shader graph.
- From the
Project
window, create a new shader by going toCreate | Shader | PBR Graph
, and name itSimpleGraph
. - Afterward, create a new material by going to
Create |
Material
(I named mineSimpleGraphMat
). Next, assign the shader to the material by selecting theMaterial
, then from theInspector
tab, you should select theShader
dropdown...