DiffuseMaterial and Its Properties

When I introduced the DiffuseMaterial class in Chapter 1, I focused almost exclusively on its Brush property. The Brush property is null by default and without it DiffuseMaterial is entirely transparent, so obviously Brush is the most important of the class's properties.

DiffuseMaterial actually defines two additional properties named Color and AmbientColor, both of type Color and both with default values of White. Together with the Brush property and the angle of the DirectionalLight source, these two properties govern the extent to which the material reflects light. The Color property indicates the amount of reflected light from a DirectionalLight source, and the AmbientColor property indicates the amount 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.