Click or drag to resize
DigitalRuneWaterCausticsDistortion Property
Gets or sets the caustics distortion.

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

Property Value

Type: Single
The caustics distortion.
Remarks

Important: Currently, the WaterRenderer renders caustics only for WaterNodes with WaterWaves.

Caustics are computed by sampling the water normal map of WaterWaves. The shader takes N x N samples where N is CausticsSampleCount. CausticsSampleOffset defines the distance between samples in world space units. CausticsDistortion defines how much the normal maps influence the caustics computation. CausticsPower defines the sharpness of the caustics; very similar to the specular power/exponent of Phong shading. CausticsIntensity defines max brightness of the caustics.

See Also