上QQ阅读APP看书,第一时间看更新
Lights, Normals, and Materials
In the real world, we see objects because they reflect light. The illumination of an object depends on its position relative to the light source, surface orientation, and its material composition. In this chapter, we will learn how to combine these three elements in WebGL to model different illumination schemes: