O'Reilly logo

3D Programming for Windows® by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Balancing Light Sources

AmbientLight resembles the outdoors on a very overcast day—the type of day where you know the sun is up there somewhere, but that's about it. You can still see things around you, but everything is illuminated equally and there are no shadows. We experience ambient light because the molecules in our atmosphere bounce available light among themselves.

AmbientLight defines no public properties on its own but inherits a Color property, which is the only property defined by the abstract Light class. The Color property is white by default.

You can set the Color property of AmbientLight to any of the 141 static read-only properties defined by the Colors class. (The transparency channel of the Color property is ignored, so the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required