Getting ready

This recipe will use the Standard Shader, so there is no need to create a new one:

  1. Create a new material (TransparencyMat).
  2. Make sure that the Shader property is set to either Standard or Standard (Specular setup) from the material's Inspector tab.
  3. Assign the newly created material to the 3D object that you want to be transparent:

Get Unity 2018 Shaders and Effects Cookbook 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.