public Bloom(Game game, GaussianBlur gaussianBlur) { this.game = game; this.device = game.GraphicsDevice; this.spriteBatch = (game as GameManager).spriteBatch; this.gaussianBlur = gaussianBlur; effect = game.Content.Load<Effect>(@"Effects\Bloom"); bloomTexture = new RenderTarget2D(device, device.Viewport.Width, device.Viewport.Height, false, SurfaceFormat.Color, DepthFormat.Depth24); bloomCombinedTexture = new RenderTarget2D(device, device.Viewport.Width, device.Viewport.Height, false, SurfaceFormat.Color, DepthFormat.Depth24); Threshold = 0.3f; BloomIntensity = 1.4f; OriginalIntensity = 1.0f; BloomSaturation = 1.2f; OriginalSaturation = 1.2f; }
protected override void LoadContent() { gaussianBlur = new GaussianBlur(Game); bloom = new Bloom(Game, gaussianBlur); motionBlur = new MotionBlur(Game); }