Example #1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     _shader.UseGlobalOpacity(Opacity);
     _shader.UseTargetPosition(TargetPosition);
     _shader.Apply();
     spriteBatch.Draw(_texture.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), Color.White);
 }
Example #2
0
 public void Apply()
 {
     _shader.UseGlobalOpacity(Opacity);
     _shader.UseTargetPosition(TargetPosition);
     _shader.Apply();
 }
Example #3
0
 public override void Activate(Vector2 position, params object[] args)
 {
     _shader.UseGlobalOpacity(Opacity);
     _shader.UseTargetPosition(position);
     Active = true;
 }