Locating and modifying shader light models
When we have created shaders so far, we have relied on the default template that Unity provides and is easily accessible in the Assets panel.
Let's start here and identify the part of the shader that handles scene lighting.
We will start by creating a default shader:
- In the Project panel, click on the
PACKT_Shadersfolder to view its contents in the Assets panel.
- In an empty area of the Assets panel, create a new default shader. Right-click and navigate to Create | Shader | Standard Surface Shader from the drop-down list.
- Rename the shader
- Double-click on the new shader to open it in MonoDevelop.
- In MonoDevelop, replace the first line with the following code:
Shader "PACKT/TestLambert" ...