HypernovaDesktop Components · docs
Binarymission
WPFShaders Library › RainFloorEffect

RainFloorEffect

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Shaders.Library.CustomEffects

A pixel shader effect that puts a rain-on-a-wet-floor distortion over its input. The activity factor drives it, so animating that property animates the rain.

public class RainFloorEffect : ShaderEffect

Inherits from / implements: ShaderEffect

Members at a glance

RainFloorEffectInitializes a new instance of the RainFloorEffect class.
InputThe image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush.
RainFloorActivityFactorHow hard the rain is falling. Animate this property to make the rain move.
InputPropertyIdentifies the Input dependency property.
RainFloorActivityFactorPropertyIdentifies the RainFloorActivityFactor dependency property.

Constructors

RainFloorEffect

public RainFloorEffect()

Initializes a new instance of the RainFloorEffect class.

Properties

Input

public Brush Input

The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush.

RainFloorActivityFactor

public double RainFloorActivityFactor

How hard the rain is falling. Animate this property to make the rain move.

Fields

InputProperty

public static readonly DependencyProperty InputProperty

Identifies the Input dependency property.

RainFloorActivityFactorProperty

public static readonly DependencyProperty RainFloorActivityFactorProperty

Identifies the RainFloorActivityFactor dependency property.