SampleVarianceShadowMap function is more general

The function has now two additional parameters to become more generic.