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 (VR) applications to provide a 3D effect by rendering separate images for the left and right eyes.
Usage
Use StereoTargetEye.Both
when you want to render content for both eyes in a stereo setup. This is commonly used in VR applications where a 3D effect is desired. You can set this value in components or systems that support stereo rendering to ensure that both eyes receive the appropriate visual data.
Example
// Example of using StereoTargetEye.Both in a VR setup
public class VRSetup : Component
{
public void ConfigureStereoRendering()
{
// Assuming there's a method to set the stereo target eye
SetStereoTargetEye(StereoTargetEye.Both);
}
private void SetStereoTargetEye(StereoTargetEye targetEye)
{
// Implementation for setting the stereo target eye
// This is a placeholder for actual stereo rendering logic
}
}