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

Metallic versus soft Specular

In this section, we are going to explore a way to create a Shader that gives us the versatility to have a soft Specular as well as a hard Specular. You will find in most productions that you will need to create a nice set of Shaders to perform many tasks. As managing too many Shaders can become overwhelming, it is common for Shader programmers to create a set of Shaders that can both be used for cloth and for metal in one Shader file. It's all about how the end user sets the properties on their model. Our goal in this recipe is to achieve this modularity with Specular, so that an end user can get a soft, shiny material and then using the same Shader, achieve a very hard metallic Shader.

To accomplish this flexibility, ...

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