public override void SetParameters(IceEffectParameters parameters)
 {
     if (parameters.Parameter1 <= 0f)
     {
         // prevent 0 or less radius
         parameters.Parameter1 = 0.0001f;
     }
     _blurAmount = parameters.Parameter1;
 }
Exemple #2
0
 public PostProcessRequest(IceEffect iceEffect)
 {
     this.IceEffect                 = iceEffect;
     IceEffectParameters            = new IceEffectParameters();
     IceEffectParameters.Parameter1 = 1;
     IceEffectParameters.Parameter2 = 1;
     IceEffectParameters.Parameter3 = 1;
     IceEffectParameters.Parameter4 = 1;
     IceEffectParameters.Parameter5 = 1;
     IceEffectParameters.Parameter6 = 1;
     IceEffectParameters.Parameter7 = 1;
     IceEffectParameters.Parameter8 = 1;
 }
 public PostProcessRequest(IceEffect iceEffect)
 {
     this.IceEffect = iceEffect;
     IceEffectParameters = new IceEffectParameters();
     IceEffectParameters.Parameter1 = 1;
     IceEffectParameters.Parameter2 = 1;
     IceEffectParameters.Parameter3 = 1;
     IceEffectParameters.Parameter4 = 1;
     IceEffectParameters.Parameter5 = 1;
     IceEffectParameters.Parameter6 = 1;
     IceEffectParameters.Parameter7 = 1;
     IceEffectParameters.Parameter8 = 1;
 }
 public PostProcessRequest(IceEffect iceEffect)
 {
     this.IceEffect = iceEffect;
     this.Layer = null;
     this.OwnLayerOnly = false;
     IceEffectParameters = new IceEffectParameters();
     IceEffectParameters.Parameter1 = 1;
     IceEffectParameters.Parameter2 = 1;
     IceEffectParameters.Parameter3 = 1;
     IceEffectParameters.Parameter4 = 1;
     IceEffectParameters.Parameter5 = 1;
     IceEffectParameters.Parameter6 = 1;
     IceEffectParameters.Parameter7 = 1;
     IceEffectParameters.Parameter8 = 1;
 }
 public PostProcessRequest(IceEffect iceEffect)
 {
     this.IceEffect                 = iceEffect;
     this.Layer                     = null;
     this.OwnLayerOnly              = false;
     IceEffectParameters            = new IceEffectParameters();
     IceEffectParameters.Parameter1 = 1;
     IceEffectParameters.Parameter2 = 1;
     IceEffectParameters.Parameter3 = 1;
     IceEffectParameters.Parameter4 = 1;
     IceEffectParameters.Parameter5 = 1;
     IceEffectParameters.Parameter6 = 1;
     IceEffectParameters.Parameter7 = 1;
     IceEffectParameters.Parameter8 = 1;
 }
		public PostProcessAnimation(IceEffect iceEffect)
        {
            _iceEffect = iceEffect;
            _iceEffectParameters = new IceEffectParameters();
            _ppRequest = new PostProcessRequest();
            _ppRequest.IceEffect = _iceEffect;
            _ppRequest.IceEffectParameters = _iceEffectParameters;
            _linearProperties = new LinearProperty[8];
            for (int i = 0; i < _linearProperties.Length; i++)
            {
                _linearProperties[i] = new LinearProperty(1.0f, "Parameter " + i, 0, 10);
            }
            _currentLife = 0;
            _life = 1;
            _currentLife = 0;
            _maxLife = _life * 60;
            _loopMax = 0;
            _loopCounter = 0;
            _isPaused = false;
            _isStopped = false;
            this.AutoPlay = true;
            this.HideWhenStopped = true;
            this.OwnLayerOnly = false;
        }
Exemple #7
0
 public override void SetParameters(IceEffectParameters parameters)
 {
     _bloomThreshold = parameters.Parameter1;
     _bloomIntensity = parameters.Parameter2;
     _baseIntensity = parameters.Parameter3;
     _bloomSaturation = parameters.Parameter4;
     _baseSaturation = parameters.Parameter5;
     if (parameters.Parameter6 <= 0f)
     {
         // prevent 0 or less radius
         parameters.Parameter6 = 0.0001f;
     }
     _blurRadius = parameters.Parameter6;
 }
Exemple #8
0
 public abstract void SetParameters(IceEffectParameters parameters);
Exemple #9
0
 public abstract void SetParameters(IceEffectParameters parameters);