Putting It All Together
Combining ambient, diffuse, and specular illumination
For multiple light sources
- Repeat the diffuse and specular calculations for each light source
- Add the components from all light sources
- The ambient term contributes only once
The different reflectance coefficients can differ.
- Simple “metal”: ka and kd share material color, ks is white
- Simple plastic: ks also includes material color