book_4_sparkGenerated
code_blocksInput

Description

The StereoTargetEye.RightEye field is a member of the StereoTargetEye enumeration in the Sandbox namespace. It specifies that only the right eye should be rendered in stereo rendering contexts. This is useful in virtual reality applications where rendering for a specific eye is required.

Usage

Use StereoTargetEye.RightEye when you need to render content specifically for the right eye in a stereo rendering setup. This can be particularly useful in VR applications where different content or effects might be applied to each eye to enhance the 3D experience.

Example

// Example of using StereoTargetEye.RightEye in a stereo rendering setup
StereoTargetEye targetEye = StereoTargetEye.RightEye;

// Assuming a method that sets the stereo target eye for rendering
SetStereoTargetEye(targetEye);

void SetStereoTargetEye(StereoTargetEye eye)
{
    // Logic to configure rendering for the specified eye
    if (eye == StereoTargetEye.RightEye)
    {
        // Configure rendering pipeline for right eye
    }
}