Game over-Wrapping it up

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:

Game over-Wrapping it up

Note

We can also get more detail on shader programming in Unity from the following websites:

(Unity Shader Reference):

http://unity3d.com/support/documentation/Components/SL-Reference.html

(Unity ShaderLab forum):

http://forum.unity3d.com/forums/16-ShaderLab

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.119.106