官术网_书友最值得收藏!

Introduction

Let's imagine a cube that has been painted white uniformly. Even if the color used is the same on each face, they will all have different shades of white depending on the direction that the light is coming from and the angle that we are looking at it. This extra level of realism is achieved in 3D graphics by shaders, special programs that are mostly used to simulate how light works. A wooden cube and a metal one may share the same 3D model, but what makes them look different is the shader that they use. Recipe after recipe, this first chapter will introduce you to shader coding in Unity. If you have little to no previous experience with shaders, this chapter is what you need to understand what shaders are, how they work, and how to customize them.

By the end of this chapter, you will have learned how to build basic shaders that perform basic operations. Armed with this knowledge, you will be able to create just about any Surface Shader.

主站蜘蛛池模板: 安乡县| 柘荣县| 苍溪县| 南雄市| 阳朔县| 眉山市| 甘德县| 巫溪县| 青浦区| 清流县| 留坝县| 广南县| 洞口县| 临朐县| 永登县| 扬中市| 鄂尔多斯市| 泊头市| 丹巴县| 洞头县| 大埔县| 积石山| 华亭县| 东安县| 独山县| 平潭县| 金阳县| 辛集市| 水城县| 敦煌市| 南陵县| 正阳县| 平果县| 华池县| 奎屯市| 泉州市| 西乌珠穆沁旗| 原阳县| 利津县| 岳阳县| 光山县|