O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

Note

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required