In this chapter, we have learned how to export the model from 3D Studio Max, and how to set the proper scale and rotation to use in Unity. We also learned the basic concept of shader programming and created by using surface shader, and created the custom lighting model for the shader. Some of you might find shader programming to be very complex with a lot of things to learn; well, yes, that's true. There is no easy way to write code using shader programming. However, if you want to know more about shader programming, you should definitely learn Cg/HLSL language, which will help you to understand more about the structure and the syntax of the shader language. Now, let's see our result in the following screenshot:
We can also get more detail on shader programming in Unity from the following websites:
http://unity3d.com/support/documentation/Components/SL-Reference.html
3.138.119.106