bool WantsStereoSubmit { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The WantsStereoSubmit property of the SceneCamera class determines whether the stereo renderer should submit this camera's texture to the compositor. This property is particularly relevant when dealing with virtual reality (VR) applications where stereo rendering is involved.

Setting this property to false will prevent the stereo renderer from submitting the camera's texture, which can be useful in scenarios where stereo rendering is not desired or necessary. However, this property is ignored if the TargetEye property of the camera is set to StereoTargetEye.None, which indicates that the camera is not targeting any specific eye for rendering.

Usage

To use the WantsStereoSubmit property, simply set it to true or false depending on whether you want the stereo renderer to submit the camera's texture to the compositor. This is typically done when configuring a SceneCamera for VR rendering.

Example usage:

SceneCamera camera = new SceneCamera();
// Enable stereo submission
camera.WantsStereoSubmit = true;

// Disable stereo submission
camera.WantsStereoSubmit = false;

Ensure that the TargetEye property is set appropriately to target the desired eye or monitor.

Example

SceneCamera camera = new SceneCamera();

// Enable stereo submission
camera.WantsStereoSubmit = true;

// Disable stereo submission
camera.WantsStereoSubmit = false;