protected void LoadQuality(SaveableData o) { MsaaMode = MsaaModes.GetByIdOrDefault <SettingEntry, int?>(o.MsaaMode); SsaaMode = SsaaModesExtended.GetByIdOrDefault <SettingEntry, int?>(o.SsaaMode); ShadowMapSize = ShadowResolutions.GetByIdOrDefault <SettingEntry, int?>(o.ShadowMapSize); Renderer.EnableShadows = o.EnableShadows; Renderer.UseBloom = o.UseBloom; Renderer.UseFxaa = o.UseFxaa; Renderer.UsePcss = o.UsePcss; Renderer.UseSmaa = o.UseSmaa; Renderer.UseAo = o.UseAo; Renderer.UseSslr = o.UseSslr; Renderer.AoType = o.AoType; }
private void SyncMsaaMode() { _msaaMode = Renderer.UseMsaa != true ? MsaaModes[0] : MsaaModes.GetByIdOrDefault <SettingEntry, int?>(Renderer.MsaaSampleCount); OnPropertyChanged(nameof(MsaaMode)); }