Chapter 17. Lights

In this chapter, you develop a set of types to support directional, point, and spotlights. This work rounds out the base of your C++ rendering framework and marks the end of Part III, “Rendering with DirectX.”

Motivation

In Chapter 6, “Lighting Models,” and Chapter 7, “Additional Lighting Models,” you expended a lot of effort authoring shaders to simulate lighting. Specifically, you authored effects for the following topics:

Image Ambient lighting

Image Diffuse lighting with directional lights

Specular highlights

Point lights

Spotlights ...

Get Real-Time 3D Rendering with DirectX® and HLSL: A Practical Guide to Graphics Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.