O'Reilly logo

Unity 4.x Cookbook by Matt Smith, Chico Queiroz

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 specular texture maps

Some surfaces can have both glossy and matte areas. In order to achieve that effect, we can use specular maps.

Getting ready

For illustration purposes, we will create a rusted metal material to demonstrate how the specular property can be used to enhance realism. If you don't have a base texture to develop into a specular material, please use the one included in the book's 0423_03_03 content folder.

How to do it...

To create a specular material, follow these steps:

  1. Create a new material called rustyMetalMaterial.
  2. Select your material. In the Inspector view, under the material's name, use the drop-down menu to change its Shader value to Specular:
  3. Open the base texture in your image editor (we'll use Adobe Photoshop to illustrate ...

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