How to do it...

With our scene generated, we can move on to the shader writing steps:

  1. In the Project tab in your Unity editor, right-click on the Chapter 2 folder and select Create | Folder.
  2. Rename the folder that you created as Shaders by right-clicking on it and selecting Rename from the drop-down list, or by selecting the folder and hitting F2 on the keyboard.
  1. Create another folder and rename it as Materials.
  2. Right-click on the Shaders folder and select Create | Shader | Standard Surface Shader. Then, right-click on the Materials folder and select Create | Material.
  3. Rename both the shader and material as StandardDiffuse.
  4. Launch the StandardDiffuse shader by double-clicking on the file. This will automatically launch a scripting editor ...

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.