Shadow comparison

Raw tex2D(ShadowMap, ShadowTexCoord)

Blured version of tex2D(ShadowMap, ShadowTexCoord)


PCSS

Blurred version of PCSS


notice more even distribution of shadows on a cheek, under nose, and over eyes.


Soft shadow support





I have added PCSS support to my software.
You can see results on the image.
Performance is not bad neither.

3 Spotligths 16 samples blocker search, 16 samples PCF.

It took me a day to tweek everything, so that now it is more or less error prone (i hope).
Some links:
http://developer.download.nvidia.com/whitepapers/2008/PCSS_Integration.pdf