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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.