Chapter 3. Lighting, Shading Effects, and Optimizations
In this chapter, we will cover:
Shading with multiple positional lights
Shading with a directional light source
Using per-fragment shading for improved realism
Using the halfway vector for improved performance
Simulating a spotlight
Creating a cartoon shading effect
Simulating fog