Click or drag to resize
DigitalRuneWaterIntersectionSoftness Property
Gets or sets the intersection softness.

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

Property Value

Type: Single
The intersection softness. The default value is 0.5.
Remarks
The water effect fades out when the water surface is intersected by geometry. This avoids sharp water edges. The fade out effect depends on the distance from the water surface to the geometry. The IntersectionSoftness defines the distance where the water effect fades out. If IntersectionSoftness is 0.5, the water is fully visible when the distance to the underwater geometry is 0.5 world space units.
See Also