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:
Ambient lighting
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.