Game Development Reference
In-Depth Information
If we go to the material component, we will see Diffuse applied to the Shader
in this material, which has two properies: Main Color and Base (RGB) . Main
Color takes the color that we can edit and it will apply the color to our model.
Base (RGB) takes the texture, which is used for our model. Both properies
can be edited and adjusted in the Unity editor to get the best look for our
model, as shown in the following screenshot:
3. Now, we will start coding by going to Assets | Create | Shader , and naming it
MyShader . Then, we right-click on it and choose Sync MonoDevelop Project to
open our MonoDevelop .
Warning: The Sync MonoDevelop Project step might not work
if we didn't set the MonoDevelop as our default editor. (This
was discussed in the first chapter.)
4. In MonoDevelop, you will see the default setup of the shader script, as shown in the
following screenshot:
 
Search WWH ::




Custom Search