O'Reilly logo

Real-Time 3D Rendering with DirectX® and HLSL: A Practical Guide to Graphics Programming by Paul Varcholik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required