Exemple #1
0
 private void DrawFullscreenQuad(Texture2D texture, int width, int height, Effect effect, BloomComponent.IntermediateBuffer currentBuffer)
 {
     if (this.showBuffer < currentBuffer)
     {
         effect = null;
     }
     this.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.Opaque, null, null, null, effect);
     this.spriteBatch.Draw(texture, new Rectangle(0, 0, width, height), Color.White);
     this.spriteBatch.End();
 }
Exemple #2
0
 private void DrawFullscreenQuad(Texture2D texture, RenderTarget2D renderTarget, Effect effect, BloomComponent.IntermediateBuffer currentBuffer)
 {
     base.GraphicsDevice.SetRenderTarget(renderTarget);
     this.DrawFullscreenQuad(texture, renderTarget.Width, renderTarget.Height, effect, currentBuffer);
 }