public QualitySettingsInfo(IParameterBag cfg)
     : base(cfg)
 {
     this.SamplesPerPixel = cfg.Get(QSSamplesPerPixel, 128);
     this.ShadowRaysPerLight = cfg.Get(QSShadowRaysPerLight, 1);
     this.LightSamplingStrategy = cfg.Get(QSLightSamplingStrategy, LightSamplingStrategy.UniformOneLight);
     this.SuperSamplingSize = cfg.Get(QSSuperSampling, 1);
     this.TextureSamplingQuality = cfg.Get(QSTextureSampling, TextureSamplingQuality.Nearest);
 }
 public OutputSettingsInfo(IParameterBag cfg)
     : base(cfg)
 {
     this.Width = cfg.Get(OSImageWidth, 512);
     this.Height = cfg.Get(OSImageHeight, 384);
     this.BitsPerPixel = cfg.Get(OSBitsPerPixel, 24);
     this.GammaCorrection = cfg.Get(OSGammaCorrection, false);
     this.ToneMap = cfg.Get(OSToneMap, false);
     this.ToneMapValue = cfg.Get(OSToneMapValue, 1.0f);
     this.FilePath = cfg.Get(OSFilePath, string.Empty);
     this.Save = !string.IsNullOrWhiteSpace(this.FilePath);
 }