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

Are you ready to go gung ho? A Hotshot challenge

Now, we learned the basic concepts of how to write a custom shader by using surface shader in Unity 3. Why don't we try out something to get more familiar with it by playing with the properties to get a different type of rendering style?

  • Adjust a value in the material editor in our shader to create a different lighting color and effect
  • Create the new ramp texture and apply it to the shader to see the new result of just changing the ramp texture
  • Try taking out some properties and using new properties such as cube and so on
  • Try changing some parameters in the custom lighting function by adding a different method to calculate the lighting direction
  • Adjust some equations by changing plus to multiple or have ...

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