Description
The StereoTargetEye.RightEye
field is a member of the StereoTargetEye
enumeration in the Sandbox namespace. It specifies that rendering should be performed only for the right eye in a stereo rendering setup. This is useful in virtual reality applications where you need to control which eye receives the rendered image.
Usage
Use StereoTargetEye.RightEye
when you want to render content specifically for the right eye in a stereo or VR environment. This can be set on components or systems that support stereo rendering to ensure that only the right eye's view is processed and displayed.
Example
// Example of setting the stereo target eye to RightEye
Camera camera = new Camera();
camera.StereoTargetEye = StereoTargetEye.RightEye;
// This will ensure that the camera only renders the right eye's view in a VR setup.