robot_2Generated
code_blocksInput

Description

The StereoTargetEye.Both field is a member of the StereoTargetEye enumeration in the Sandbox namespace. It specifies that both eyes should be rendered in stereo, which is typically used in virtual reality or 3D applications to provide a full stereoscopic experience.

Usage

Use StereoTargetEye.Both when you want to render content for both the left and right eyes simultaneously. This is useful in scenarios where a complete stereoscopic view is required, such as in VR applications.

Example

// Example of using StereoTargetEye.Both in a VR application
public class VRRenderer : Component
{
    public void SetupStereoRendering()
    {
        // Set the stereo target to render both eyes
        StereoTargetEye targetEye = StereoTargetEye.Both;
        // Additional setup for stereo rendering
        // ...
    }
}