Materials
Materials are art assets placed on an object that give various rendering properties. A highly reflective polish job on a smooth, silver surface or a rough and rugged wooden door with moss growing on the bottom are both examples of Materials. Materials are made up of the Material component itself, shaders, and textures.
While the details of shaders are beyond the scope of this book, we do need a general overview. A shader is a small script file that tells Unity how to react to light. In real life, when light hits a surface, it does not just stop there. Elements such as color, reflectivity, and smoothness can determine the way light bounces around a space. In its effort to simulate this, PBS is designed to take these factors into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access