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); }
public void Apply() { _shader.UseGlobalOpacity(Opacity); _shader.UseTargetPosition(TargetPosition); _shader.Apply(); }
public override void Activate(Vector2 position, params object[] args) { _shader.UseGlobalOpacity(Opacity); _shader.UseTargetPosition(position); Active = true; }