Variance |
ShadowDepthBluringSize gets or sets an integer that specifies the blur amount that is applied on the shadow depth map and can produce shadows with nice soft edges.
Default value is 4.
Note |
---|
The ShadowMapSize and values must be changed before the VarianceShadowRenderingProvider is initialized.
To change the value of those two properties do the following: 1) disable the existing VarianceShadowRenderingProvider with calling InitializeShadowRendering(ShadowRenderingProviderBase) method with null parameter; 2) create a new instance of VarianceShadowRenderingProvider with new values for ShadowMapSize and ShadowDepthBluringSize; 3) Call the InitializeShadowRendering(ShadowRenderingProviderBase) method again an pass the new instance of VarianceShadowRenderingProvider as parameter. |