Once the StandardColor shader is ready, we can start changing its properties:
- In the first line of the script, update the name to the following:
Shader "CookbookShaders/Chapter 02/StandardColor" {
Downloading the example code
You can download
the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you.
- In the Properties block of our shader, remove the current property by deleting the following code from our current shader:
_MainTex ("Albedo (RGB)", 2D) = "white" {}
- As we have removed an essential property, this shader will not compile ...