| WaterIntersectionSoftness Property |
Gets or sets the intersection softness.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public float IntersectionSoftness { get; set; }
Public Property IntersectionSoftness As Single
Get
Set
public:
property float IntersectionSoftness {
float get ();
void set (float value);
}
member IntersectionSoftness : float32 with get, set
Property Value
Type:
SingleThe 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