Click or drag to resize
DigitalRuneSsaoFilterMaxDistances Property
Gets or sets the max distances for ambient occlusion.

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

Property Value

Type: Vector2F
The max distances, given as a vector with 2 components: (max distance for the inner radius, max distance for the outer radius). The values are specified in world space units. The default is (0.5, 1.0).
Remarks

To avoid dark halos around objects, the ambient occlusion disappears if the distance between a shaded point and its occluder is greater than MaxDistances. MaxDistances allows to define separate max distance values for the inner and the outer sampling radius (see Radii).

The max distances are given in world space units. The default values are suitable for typical scenes, where 1 world space unit = 1 meter. The values need to be adjusted if the scene uses a different scale.

See Also