Click or drag to resize
DigitalRuneWaterFlowCycleDuration Property
Gets or sets the cycle duration in seconds of a normal map layer.

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

Property Value

Type: Single
The cycle duration in seconds of a normal map layer
Remarks

Flow animation is usually created by moving a normal map layer over the water plane. If different pixels move the water plane in different directions, the normal map gets distorted. Therefore, the animation has to alternate between two normal map layers. Each normal map layer is moved and reset while the other normal map is visible. CycleDuration defines how long each normal map layer is shown before it is reset. Too short cycle times can create an unwanted "pulsing" effect. Too long cycle times can create unwanted visible distortions.

See Also