Click or drag to resize
DigitalRuneBlurDepthScaling Property
Gets or sets a value that controls how scene depth influences the filter scale. (Only used by anisotropic or bilateral blurs.)

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float DepthScaling { get; set; }

Property Value

Type: Single
The depth scaling value in the range [0, 1]. The default value is 0.7.
Remarks

This property is only relevant for anisotropic (IsAnisotropic) or bilateral (IsBilateral) filters.

Setting DepthScaling to 0 disables depth scaling. The filter radius is constant over the entire scene.

If DepthScaling is 1, then the filter radius is scaled with scene depth, getting smaller in the distance. The filter radius at a distance of 1 unit is 100%. The filter radius at infinity is 0.

The value can be between 0 and 1, for example: If DepthScaling is 0.7, the filter radius decreases slowly with scene depth. The filter radius at a distance of 1 unit is 100%. The filter radius at infinity is 30%.

See Also