SetSinglePassStereo(SinglePassStereoMode)
Add a command to set single-pass stereo mode for the camera.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public void SetSinglePassStereo(SinglePassStereoMode mode)
Parameters
Single-pass stereo mode for the camera.
Remarks
This property is only used when Virtual Reality is enabled. The values passed to mode are found in the SinglePassStereoMode enum. This can be paired with set shader keyword (i.e. UNITY_SINGLE_PASS_STEREO) to temporarily disable stereo rendering for fullscreen effects. Note: changing single-pass stereo mode can cause rendering artifacts when stereo is enabled.