Example #1
0
 public void OnReflectionBtnClick(bool willBeOn)
 {
     this._modifiedPersonalSetting.IsUserDefinedGrade            = false;
     this._modifiedPersonalSetting.IsUserDefinedVolatile         = true;
     this._modifiedPersonalSetting.VolatileSetting.UseReflection = willBeOn;
     GraphicsSettingUtil.EnableReflection(willBeOn);
     this.ShowReflection(this._modifiedPersonalSetting.VolatileSetting.UseReflection, false);
 }
Example #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);
        }