Past few months we started developing yet another racing game.. But this time we decided to use Unity as our main development tool, instead of Adobe Director. Unity gives us a lot of possibilities considering performance, 'next gen' graphics and effects for example. Today I want to show you guys one of the graphical effects we are currently working on, the car shader. As you might know, car paint is a reflective material, as shown below.
To achieve this effect in our game we need some sort of simulated reflection. This effect is done by using a so called 'Cubemap'. The cubemap contains reflection information/color for the car shader to render. The reflection color is 'Added' to the diffuse color of the model.
I also added a 'damage colormap' and a 'damage normalmap' to the shader to simulate car damage.