/// <summary> /// Initializes a new instance of the SwirlEffect class. /// </summary> public SwirlEffect() { this.PixelShader = pixelShader; UpdateShaderValue(CenterProperty); UpdateShaderValue(SwirlStrengthProperty); UpdateShaderValue(AngleFrequencyProperty); UpdateShaderValue(InputProperty); this.generalTransform = new SwirlGeneralTransform(this); }
/// <summary> /// Creates an instance and updates the shader's variables to the default values. /// </summary> public SwirlEffect() { this.PixelShader = pixelShader; UpdateShaderValue(CenterProperty); UpdateShaderValue(SwirlStrengthProperty); UpdateShaderValue(AngleFrequencyProperty); UpdateShaderValue(InputProperty); this.generalTransform = new SwirlGeneralTransform(this); }