- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 54字
- 2021-06-10 19:43:02
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: