How to do it...

There are two main textures that need to be configured in the Standard Shader: Albedo and Metallic. To use the metallic workflow effectively, we need to initialize these maps correctly:

  1. The Albedo map should be initialized with the unlit texture of the 3D model.
  2. To create the Metallic map, start by duplicating the file for your Albedo map. You can do this by selecting the map from the Project tab and pressing Ctrl + D.
  3. Use white (#ffffff) to color the regions of the map that correspond to materials that are made of pure metal. Use black (#000000) for all the other colors. Shades of grey should be used for dusty, weathered, or worn-out metal surfaces, rust, scratched paint, and so on. As a matter of fact, Unity uses only the ...

Get Unity 2018 Shaders and Effects Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.