文档

Unity Engine

Unity Engine

SetSinglePassStereo(SinglePassStereoMode)

Add a command to set single-pass stereo mode for the camera.
阅读时间1 分钟最后更新于 25 天前

Definition

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.