public BloomEffect(Game game, float intensity, float saturation, float baseIntensity, float baseSatration, float threshold, float blurAmount)
            : base(game)
        {
            bp = new BrightPass(game, threshold);
            gbv = new GaussBlurV(game, blurAmount);
            gbh = new GaussBlurH(game, blurAmount);
            b = new Bloom(game, intensity, saturation, baseIntensity, baseSatration);

            AddPostProcess(bp);
            AddPostProcess(gbv);
            AddPostProcess(gbh);
            AddPostProcess(b);
        }
Пример #2
0
        public BloomEffect(Game game, float intensity, float saturation, float baseIntensity, float baseSatration, float threshold, float blurAmount)
            : base(game)
        {
            bp  = new BrightPass(game, threshold);
            gbv = new GaussBlurV(game, blurAmount);
            gbh = new GaussBlurH(game, blurAmount);
            b   = new Bloom(game, intensity, saturation, baseIntensity, baseSatration);

            AddPostProcess(bp);
            AddPostProcess(gbv);
            AddPostProcess(gbh);
            AddPostProcess(b);
        }