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 TextureSamplingManager(TextureSamplingQuality q) { this.Quality = q; if (q == TextureSamplingQuality.Linear) { this.sampler = new LinearTextureSampler(); } else if (q == TextureSamplingQuality.Nearest) { this.sampler = new NearestTextureSampler(); } }