Esempio n. 1
0
 public void OnPostFXGradeBtnClick()
 {
     this._modifiedPersonalSetting.IsUserDefinedGrade    = false;
     this._modifiedPersonalSetting.IsUserDefinedVolatile = true;
     if (this._modifiedPersonalSetting.VolatileSetting.PostFXGrade == PostEffectQualityGrade.Low)
     {
         this._modifiedPersonalSetting.VolatileSetting.PostFXGrade = PostEffectQualityGrade.High;
     }
     else
     {
         this._modifiedPersonalSetting.VolatileSetting.PostFXGrade = PostEffectQualityGrade.Low;
     }
     GraphicsSettingUtil.SetPostEffectBufferSizeByQuality(this._modifiedPersonalSetting.PostFxGradeBufferSize, this._modifiedPersonalSetting.VolatileSetting.PostFXGrade);
     this.ShowPostFXGrade(this._modifiedPersonalSetting.VolatileSetting.PostFXGrade, false, true);
 }
Esempio n. 2
0
        public static void ApplySettingConfig(ConfigGraphicsSetting setting)
        {
            GraphicsSettingUtil.SetTargetFrameRate(setting.TargetFrameRate);
            bool forceWhenDisable = true;

            GraphicsSettingUtil.EnablePostFX(setting.VolatileSetting.UsePostFX, forceWhenDisable);
            GraphicsSettingUtil.ApplyResolution(setting.ResolutionPercentage, setting.ResolutionQuality, setting.RecommendResolutionX, setting.RecommendResolutionY);
            GraphicsSettingUtil.SetPostEffectBufferSizeByQuality(setting.PostFxGradeBufferSize, setting.VolatileSetting.PostFXGrade);
            GraphicsSettingUtil.EnableHDR(setting.VolatileSetting.UseHDR);
            GraphicsSettingUtil.EnableDistortion(setting.VolatileSetting.UseDistortion);
            GraphicsSettingUtil.EnableReflection(setting.VolatileSetting.UseReflection);
            GraphicsSettingUtil.EnableFXAA(setting.VolatileSetting.UseFXAA);
            GraphicsSettingUtil.EnableDynamicBone(setting.VolatileSetting.UseDynamicBone);
            GraphicsSettingUtil.EnableStaticCloudMode(!setting.VolatileSetting.UseDynamicBone);
        }