- Home /
Question by
sayangel · May 20, 2017 at 09:27 AM ·
vrantialiasing
MSAA disabled when toggling VRSettings
I'm trying to be able to leave and enter VR at runtime. I've noticed if I set VRsettings.enabled = true
and then back to false MSAA is no longer applied.
I've also noticed odd behavior from ImageEffects when entering and then exiting VR. It results in a camera flip.
Is something irreversible happening when toggling VRsettings true and then false?
MSAA looks fine at startup and when in VR:
MSAA after VRSettings = false
:
I'm on Unity 5.6.0f3 and my scene is nothing more than a camera, the cube and plane, and a script to toggle VR:
void Update () {
if(Input.GetKeyDown(KeyCode.V)){
enabled = !enabled;
Debug.Log("toggling VR to " + enabled);
VRSettings.enabled = enabled;
} }
msaa-postvr.png
(68.2 kB)
msaa-prevr.png
(71.5 kB)
Comment