Chapter 5. Texture and Materials

In this chapter:

Gradient Brushes 185

Tile Brushes 194

Specular and Emissive Materials 228

Generally the worlds of two-dimensional graphics and three-dimensional graphics are kept far apart. Each world has its own paradigms, its own classes for defining visible objects, and its own transforms. But the two worlds meet where brushes are concerned: Three-dimensional figures are always covered with two-dimensional surfaces. It seems reasonable that these surfaces could be colored and patterned with the array of brushes WPF provides for two-dimensional graphics, and that's precisely the case.

So far I've been decorating 3D figures with solid colors. In this chapter I'll show you how to use gradient brushes and tile brushes, ...

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.