Game Development Reference
In-Depth Information
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 rotaion to use in Unity. We also learned the basic concept of shader
programming and created by using surface shader, and created the custom lighing 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:
(Unity Shader Reference):
http://unity3d.com/support/documentation/Components/
SL-Reference.html
(Unity ShaderLab forum):
http://forum.unity3d.com/forums/16-ShaderLab
 
Search WWH ::




Custom Search