O'Reilly logo

Unity 4 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

Chapter 3. Shade Your Hero/Heroine

In the last two projects, we learned how to create a UI using the GUI object as well as a 2D platform game that used the 2D sprite texture to create our 2D character, and we also got to know a bit about the 3D world in the first project. So, in this project, we will be using a full 3D character. We will take a close look at how to apply a material and shader to the model.

In Unity, there are three different types of shaders. First, surface shaders is the best option if we want our shader to be affected by lights and shadows. Next, Vertex and Fragment Shaders will be required when our shader doesn't need to interact with lighting or needs an effect that surface shaders can't handle. Finally, ShaderLab and Fixed ...

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