GSXRDebugOverrideSettings.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class GSXRDebugOverrideSettings : MonoBehaviour {
  5. // Update is called once per frame
  6. void Update ()
  7. {
  8. if (Input.GetKeyDown(KeyCode.Alpha1)) { GSXROverrideSettings.EyeAntiAliasing = GSXROverrideSettings.eAntiAliasing.k1; }
  9. if (Input.GetKeyDown(KeyCode.Alpha2)) { GSXROverrideSettings.EyeAntiAliasing = GSXROverrideSettings.eAntiAliasing.k2; }
  10. if (Input.GetKeyDown(KeyCode.Alpha3)) { GSXROverrideSettings.EyeAntiAliasing = GSXROverrideSettings.eAntiAliasing.k4; }
  11. if (Input.GetKeyDown(KeyCode.Q)) { GSXROverrideSettings.EyeResolutionScaleFactor = 0.25f; }
  12. if (Input.GetKeyDown(KeyCode.W)) { GSXROverrideSettings.EyeResolutionScaleFactor = 0.5f; }
  13. if (Input.GetKeyDown(KeyCode.E)) { GSXROverrideSettings.EyeResolutionScaleFactor = 0.75f; }
  14. if (Input.GetKeyDown(KeyCode.R)) { GSXROverrideSettings.EyeResolutionScaleFactor = 1.0f; }
  15. if (Input.GetKeyDown(KeyCode.T)) { GSXROverrideSettings.EyeResolutionScaleFactor = 1.25f; }
  16. if (Input.GetKeyDown(KeyCode.Y)) { GSXROverrideSettings.EyeResolutionScaleFactor = 1.5f; }
  17. if (Input.GetKeyDown(KeyCode.A)) { GSXROverrideSettings.MasterTextureLimit = GSXROverrideSettings.eMasterTextureLimit.k0; }
  18. if (Input.GetKeyDown(KeyCode.S)) { GSXROverrideSettings.MasterTextureLimit = GSXROverrideSettings.eMasterTextureLimit.k1; }
  19. if (Input.GetKeyDown(KeyCode.D)) { GSXROverrideSettings.MasterTextureLimit = GSXROverrideSettings.eMasterTextureLimit.k2; }
  20. if (Input.GetKeyDown(KeyCode.F)) { GSXROverrideSettings.MasterTextureLimit = GSXROverrideSettings.eMasterTextureLimit.k3; }
  21. if (Input.GetKeyDown(KeyCode.G)) { GSXROverrideSettings.MasterTextureLimit = GSXROverrideSettings.eMasterTextureLimit.k4; }
  22. if (Input.GetKeyDown(KeyCode.U)) { GSXROverrideSettings.CpuPerfLevel = GSXROverrideSettings.ePerfLevel.Minimum; }
  23. if (Input.GetKeyDown(KeyCode.I)) { GSXROverrideSettings.CpuPerfLevel = GSXROverrideSettings.ePerfLevel.Medium; }
  24. if (Input.GetKeyDown(KeyCode.O)) { GSXROverrideSettings.CpuPerfLevel = GSXROverrideSettings.ePerfLevel.Maximum; }
  25. if (Input.GetKeyDown(KeyCode.P)) { GSXROverrideSettings.CpuPerfLevel = GSXROverrideSettings.ePerfLevel.System; }
  26. if (Input.GetKeyDown(KeyCode.H)) { GSXROverrideSettings.GpuPerfLevel = GSXROverrideSettings.ePerfLevel.Minimum; }
  27. if (Input.GetKeyDown(KeyCode.J)) { GSXROverrideSettings.GpuPerfLevel = GSXROverrideSettings.ePerfLevel.Medium; }
  28. if (Input.GetKeyDown(KeyCode.K)) { GSXROverrideSettings.GpuPerfLevel = GSXROverrideSettings.ePerfLevel.Maximum; }
  29. if (Input.GetKeyDown(KeyCode.L)) { GSXROverrideSettings.GpuPerfLevel = GSXROverrideSettings.ePerfLevel.System; }
  30. if (Input.GetKeyDown(KeyCode.Z)) { GSXROverrideSettings.ChromaticAberrationCorrection = GSXROverrideSettings.eChromaticAberrationCorrection.kDisable; }
  31. if (Input.GetKeyDown(KeyCode.X)) { GSXROverrideSettings.ChromaticAberrationCorrection = GSXROverrideSettings.eChromaticAberrationCorrection.kEnable; }
  32. if (Input.GetKeyDown(KeyCode.C)) { GSXROverrideSettings.VSyncCount = GSXROverrideSettings.eVSyncCount.k1; }
  33. if (Input.GetKeyDown(KeyCode.V)) { GSXROverrideSettings.VSyncCount = GSXROverrideSettings.eVSyncCount.k2; }
  34. if (Input.GetKeyDown(KeyCode.M)) { GSXROverrideSettings.FoveateArea = Mathf.Clamp(GSXROverrideSettings.FoveateArea + 0.1f, 0f, 1f); Debug.LogFormat("FoveateArea: {0}", GSXROverrideSettings.FoveateArea); }
  35. if (Input.GetKeyDown(KeyCode.N)) { GSXROverrideSettings.FoveateArea = Mathf.Clamp(GSXROverrideSettings.FoveateArea - 0.1f, 0f, 1f); Debug.LogFormat("FoveateArea: {0}", GSXROverrideSettings.FoveateArea); }
  36. if (Input.GetKeyDown(KeyCode.Period)) { GSXROverrideSettings.FoveateGain = GSXROverrideSettings.FoveateGain + Vector2.one; Debug.LogFormat("FoveateGain: {0}", GSXROverrideSettings.FoveateGain); }
  37. if (Input.GetKeyDown(KeyCode.Comma)) { GSXROverrideSettings.FoveateGain = GSXROverrideSettings.FoveateGain - Vector2.one; Debug.LogFormat("FoveateGain: {0}", GSXROverrideSettings.FoveateGain); }
  38. }
  39. }