Creating a glow effect with Shader Graph
In the previous recipe, we created a simple Shader Graph using a material for a primitive 3D cube mesh. In this recipe, we’ll take things further by creating a Shader Graph that applies a parameterized glow effect to a 3D object. The end result will look as follows:
Figure 14.13: Example demonstrating a blue glow effect
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 URP Lit Shader Graph named
glowShaderGraph
by going to Create | Shader Graph | URP | Lit Shader Graph. - We now need a 3D mesh object for the scene. While we could just use a 3D cube again, it’s more fun to add a low-polygon textured character to the scene. For this recipe, we’ve used the free Unity Asset Store character pack called Fantasy...