Skip to content

Commit

Permalink
Pull the quality override - see new pulsed realtime reflection probes…
Browse files Browse the repository at this point in the history
… setting instead
  • Loading branch information
OrangeSpork committed May 16, 2021
1 parent 3ab9d83 commit 627178a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions HS2VR/Interpreters/HS2Interpreter.cs
Expand Up @@ -69,30 +69,6 @@ protected override void OnUpdate()
StartCoroutine(FindCamlight());
loaded = true;
}
if (QualitySettings.realtimeReflectionProbes)
StartCoroutine(UpdateVRGraphics());
}

// Give it a few frames and then flip some of these settings to VR friendly modes
private IEnumerator UpdateVRGraphics()
{
yield return null;
yield return null;
yield return null;

try
{
QualitySettings.realtimeReflectionProbes = false;
VR.Camera.SteamCam.camera.allowMSAA = false;
VR.Camera.SteamCam.camera.GetComponent<PostProcessLayer>().antialiasingMode = PostProcessLayer.Antialiasing.SubpixelMorphologicalAntialiasing;
VRLog.Info("VR Graphics QualitySettings Adapted");
}
catch (Exception e)
{
VRLog.Warn($"Unable to deactive extra Graphics Settings: {e.Message}", e);
}


}

public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
Expand Down

0 comments on commit 627178a

Please sign in to comment.