Our shader technique is causing other text to get massed up. We would like to cancel the shader after we apply. We tried saving the EffectTechnique. We can do a spritebatch begin and end but we wanted avoid performance and other issues related to that.
Code:
Game1.gradientFX.Parameters["startColor"].SetValue(color1.ToVector4());
Game1.gradientFX.Parameters["endColor"].SetValue(color2.ToVector4());
Game1.gradientFX.Parameters["startCoords"].SetValue(new Vector2(0,0));
Game1.gradientFX.Parameters["endCoords"].SetValue(new Vector2(0,1));
EffectTechnique tech = Game1.gradientFX.CurrentTechnique;
Game1.gradientFX.CurrentTechnique.Passes[0].Apply();
Game1.gradientFX.CurrentTechnique = tech;