Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToneMap" /> class.
 /// </summary>
 /// <param name="toneMapEffect">The tone map shader effect (default is <c>ToneMapEffect)</c>.</param>
 /// <exception cref="System.ArgumentNullException">toneMapEffect</exception>
 public ToneMap(string toneMapEffect) : base(toneMapEffect)
 {
     timer              = new Stopwatch();
     AutoKeyValue       = true;
     Operator           = new ToneMapHejl2Operator();
     AdaptationRate     = 1.0f;
     TemporalAdaptation = true;
     AutoExposure       = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ToneMap" /> class.
 /// </summary>
 /// <param name="toneMapEffect">The tone map shader effect (default is <c>ToneMapEffect)</c>.</param>
 /// <exception cref="System.ArgumentNullException">toneMapEffect</exception>
 public ToneMap(string toneMapEffect) : base(toneMapEffect)
 {
     timer = new Stopwatch();
     AutoKeyValue = true;
     Operator = new ToneMapHejl2Operator();
     AdaptationRate = 1.0f;
     TemporalAdaptation = true;
     AutoExposure = true;
 }