Prefiltered Shadow Maps

Creating Moment Shadow Maps From Compute Shaders.

This Project was about transforming a preexisting shadow map into a moment shadow map. The reason why one would want to do moment shadow maps is that they look more natural, the shadows in moment shadow maps are more blurred than the previous shadow maps. The way this is obtained is by blurring a shadow map with a set of gaussian weights. Then performing the moment shadow map algorithm upon that blurred map to determine if the pixel should be drawn.

Blur-Filter Example

Weight Comparison