Class holds all the settings used to tweak the bloom effect.
        /// <summary>
        /// sets the settings used by the bloom and blur shaders
        /// </summary>
        /// <param name="settings">Settings.</param>
        public void setBloomSettings(BloomSettings settings)
        {
            _settings = settings;

            _bloomExtractThresholdParam.SetValue(_settings.threshold);

            _bloomIntensityParam.SetValue(_settings.intensity);
            _bloomBaseIntensityParam.SetValue(_settings.baseIntensity);
            _bloomSaturationParam.SetValue(_settings.saturation);
            _bloomBaseSaturationParam.SetValue(_settings.baseSaturation);
        }
Beispiel #2
0
		/// <summary>
		/// sets the settings used by the bloom and blur shaders
		/// </summary>
		/// <param name="settings">Settings.</param>
		public void setBloomSettings( BloomSettings settings )
		{
			_settings = settings;

			_bloomExtractThresholdParam.SetValue( _settings.threshold );

			_bloomIntensityParam.SetValue( _settings.intensity );
			_bloomBaseIntensityParam.SetValue( _settings.baseIntensity );
			_bloomSaturationParam.SetValue( _settings.saturation );
			_bloomBaseSaturationParam.SetValue( _settings.baseSaturation );

			_gaussianBlurEffect.blurAmount = _settings.blurAmount;
		}
        /// <summary>
        /// sets the settings used by the bloom and blur shaders
        /// </summary>
        /// <param name="settings">Settings.</param>
        public void setBloomSettings(BloomSettings settings)
        {
            _settings = settings;

            _bloomExtractThresholdParam.SetValue(_settings.threshold);

            _bloomIntensityParam.SetValue(_settings.intensity);
            _bloomBaseIntensityParam.SetValue(_settings.baseIntensity);
            _bloomSaturationParam.SetValue(_settings.saturation);
            _bloomBaseSaturationParam.SetValue(_settings.baseSaturation);

            _gaussianBlurEffect.blurAmount = _settings.blurAmount;
        }
 public BloomPostProcessor(int executionOrder) : base(executionOrder)
 {
     _settings = BloomSettings.presetSettings[3];
 }
Beispiel #5
0
		public BloomPostProcessor( int executionOrder ) : base( executionOrder )
		{
			_settings = BloomSettings.presetSettings[3];
		}