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

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.

主站蜘蛛池模板: 蒙城县| 乐平市| 拉萨市| 开江县| 罗源县| 承德市| 会同县| 西充县| 普定县| 太白县| 呈贡县| 湖南省| 通化县| 绥化市| 疏勒县| 徐闻县| 连城县| 石楼县| 海晏县| 萨嘎县| 百色市| 卓资县| 安化县| 文化| 罗定市| 方山县| 泰顺县| 南充市| 若羌县| 额尔古纳市| 孙吴县| 东平县| 渭南市| 皋兰县| 东乌珠穆沁旗| 定日县| 鄂温| 繁昌县| 汝阳县| 连州市| 荔波县|