O'Reilly logo

3D Graphics with XNA Game Studio 4.0 by Sean James

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

Variance shadow mapping—soft shadows

Our current shadows look nice, but they do not behave like those found in the real world. While shadows often do have sharp edges, most of the time they do not. On overcast days, or when objects are hit with an indirect light source, shadows will often appear fuzzy and blurry. In the following sections, we will implement soft shadows with a technique called Variance Shadow Maps (VSM). The major benefit of variance shadow mapping is that we can filter the depth texture like a regular texture—in this case, blurring it—without ruining the shadows that result.

Variance shadow mapping—soft shadows

This section will focus more on the implementation of ...

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