O'Reilly logo

XAML Unleashed by Adam Nathan

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

Lights

Lighting is a concept that is unique to 3D. In 2D, the colors that appear from the screen usually come directly from the Brush used. In 3D, there is an extra lighting step, which dynamically calculates the shading of the 3D objects, depending on their proximity to light sources in the scene. Dynamic lighting makes it far easier to create and animate realistic-looking scenes.

There are three components to lighting: Light objects, which emit light into the scene; Materials, which reflect the light back to the Camera; and the Geometry of the model, which determines the angles involved. This section introduces the various Light types supported by WPF:

DirectionalLight—Casts parallel rays into the scene from an origin at infinity. DirectionalLight ...

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