Creating a glow effect with Shader Graph
In the previous recipe, a simple Shader Graph was created by using a Material for a primitive 3D Cube mesh. In this recipe, we'll take things further, creating a Shader Graph that applies a parameterized glow effect to a 3D object. The end result will look as follows:

Getting ready
This recipe builds on the previous one, so make a copy of that project and use the copy for this recipe.
How to do it...
To create a glow effect with a Shader Graph, follow these steps:
- In the Project panel, create a new Physically-Based Rendering (PBR) Shader Graph, named glowShaderGraph. Choose menu:
Create | Shader | PBR Graph
. - In the Project panel, create a new Material named
m_glow
. Choose menu:Create | Material
. - 3. With the m_glow selected, in the Inspector, set its Shader property to glowShaderGraph. For the Material'sShader property, choose menu:
graphs | glowShaderGraph
.
- We now need a 3D mesh object in the scene that uses
m_glow
. While we could just use a 3D Cube again...