How to do it...

To create a glow effect with a Shader Graph, follow these steps:

  1. In the Project panel, create a new Physically-Based Rendering (PBR) Shader Graph, named glowShaderGraph. Choose menu: Create | Shader | PBR Graph.
  2. In the Project panel, create a new Material named m_glow. Choose menu: Create | Material.
  3. 3. With the m_glow selected, in the Inspector, set its Shader property to glowShaderGraph. For the Material's Shader property, choose menu: graphs | glowShaderGraph.
  1. We now need a 3D mesh object in the scene that uses m_glow. 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 Fantasy Mushroom Mon(ster) ...

Get Unity 2018 Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.