O'Reilly logo

Unity Shaders and Effects Cookbook by Kenny Lammers

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

Creating a vehicle paint lighting model

One of the most used Shader effects is the car shader or vehicle shader. This includes many of the techniques we have covered so far in the previous chapters, but now we are going to put all our new-found knowledge to the test. We will create the foundation for a real production-ready Shader that can be used on any of your vehicle models. This will definitely be one of the more advanced Shaders we have written as well as one of the longest, but we will step through it and I'll explain each element.

Getting ready

Let's get a new scene prepared with a few assets in it so that we can create our vehicle paint lighting model.

  1. We will first need something to shade, so we need to create a new object in a new scene. ...

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