protected override void Draw(GameTime gameTime) { GraphicsDevice.SetRenderTarget(pixelBox); GraphicsDevice.Clear(Color.LightCyan); spriteBatch.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp); world.draw(spriteBatch, gameTime); spriteBatch.End(); GraphicsDevice.SetRenderTarget(null); spriteBatch.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp); spriteBatch.Draw(pixelBox, new Rectangle(0, 0, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight), Color.White); spriteBatch.End(); base.Draw(gameTime); }