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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access