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

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.

主站蜘蛛池模板: 右玉县| 额敏县| 林芝县| 西和县| 沁水县| 那坡县| 佛学| 黑河市| 陈巴尔虎旗| 阳信县| 和静县| 论坛| 丽水市| 阿拉善左旗| 博客| 西充县| 越西县| 龙川县| 吉首市| 桑植县| 石景山区| 文昌市| 进贤县| 城固县| 临颍县| 阿城市| 三江| 斗六市| 章丘市| 荣昌县| 郁南县| 达日县| 芦山县| 大连市| 屯昌县| 巴彦淖尔市| 和田县| 太原市| 绥江县| 宜黄县| 宿迁市|