Esempio n. 1
0
 public static void SetGameQuality(int lod, bool init = false)
 {
     GameLevelManager.GameLevelVariable.LODLEVEL = lod;
     if (!SystemConfig.IsPostProcessOn)
     {
         lod = GameLevelManager.LODLevel.GetDefault();
     }
     GameLevelManager.SetGlobalMaximumLOD(lod);
     GameLevelManager.SetFXMaxParticles(lod);
     GameLevelManager.SetShadow(lod, init);
     GameLevelManager.SetFog(lod);
     GameLevelManager.SetSceneFX(lod, false);
     EventDispatcher.Broadcast(ShaderEffectEvent.LODChanged);
 }