public override void Draw(
Camera camera,
ref Texture2D screenTexture,
ref Rectangle baseRectangle,
Color clearColor)
{
// Set the effect parameters
SetEffectParameters(camera);
#region Horizontal Blur
// Set the effect technique
mEffect.CurrentTechnique = mEffect.Techniques[mTechniqueHorizontal];
// Draw the horizontal pass
DrawToTexture(camera, ref mTexture, clearColor, ref screenTexture, ref baseRectangle);
#endregion
#region Vertical Blur
// Set the effect technique
mEffect.CurrentTechnique = mEffect.Techniques[mTechniqueVertical];
// Draw the vertical pass
DrawToTexture(camera, ref mTexture, clearColor, ref mTexture, ref baseRectangle);
#endregion
}