Ejemplo n.º 1
0
 public BloomEffect(GraphicsDevice device)
 {
     _tween = new Tween(TimeSpan.FromSeconds(3), 1f, -1f, true);
     _bloom = new Effect(device, Splosion.LoadStream(@"Content\Effects\bloom.mgfxo"));
     _bloom.Parameters["BaseIntensity"].SetValue(.25f);
     _bloom.Parameters["BaseSaturation"].SetValue(.5f);
     _bloom.Parameters["BloomIntensity"].SetValue(1f);
     _bloom.Parameters["BloomSaturation"].SetValue(.75f);
 }
Ejemplo n.º 2
0
        public RippleEffect(GraphicsDevice device)
        {
            _tween  = new Tween(TimeSpan.FromSeconds(3), 1f, -1f, true);
            _ripple = new Effect(device, Splosion.LoadStream(@"Content\Effects\ripple.mgfxo"));
            _ripple.Parameters["wave"].SetValue(1.75f);
            _ripple.Parameters["distortion"].SetValue(0f);
            _ripple.Parameters["centerCoord"].SetValue(new Vector2(0.5f, 0.5f));
//            _ripple.Parameters["Phase"].SetValue(.5f);
        }