Chapter 4. Light and Shading
In this chapter:
DiffuseMaterial and Its Properties 171
Several factors contribute to a successful three-dimensional scene. Getting the geometry correct is certainly important, and it's often desirable to use transforms or other means to animate the 3D figures. But a successful 3D scene also depends on lighting, particularly the interaction of the light with the surfaces (or texture) of figures—an effect called shading.
I'll begin this chapter establishing how light illuminates surfaces in WPF 3D. I'll show how vector mathematics contribute to the calculation of lighting, and I'll conclude the chapter with demonstrations of two derivatives of ...
Get 3D Programming for Windows® 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.