public override void Apply()
{
Vector2 vector2_1 = new Vector2((float)Main.offScreenRange, (float)Main.offScreenRange);
Vector2 vector2_2 = new Vector2((float)Main.screenWidth, (float)Main.screenHeight);
_shader.Parameters["uColor"].SetValue(_uColor);
_shader.Parameters["uOpacity"].SetValue(_uOpacity * _globalOpacity);
_shader.Parameters["uSecondaryColor"].SetValue(_uSecondaryColor);
_shader.Parameters["uTime"].SetValue(Main.GlobalTime);
_shader.Parameters["uScreenResolution"].SetValue(vector2_2);
_shader.Parameters["uScreenPosition"].SetValue(Main.screenPosition - vector2_1);
_shader.Parameters["uTargetPosition"].SetValue(_uTargetPosition - vector2_1);
_shader.Parameters["uIntensity"].SetValue(_uIntensity);
_shader.Parameters["uProgress"].SetValue(_uProgress);
base.Apply();
}