Instance Property

rightViewMatrix

The transformation matrix that determines the position and orientation of the camera’s right viewpoint relative to a scene.

Declaration

var rightViewMatrix: matrix_float4x4 { get }

Discussion

Model I/O automatically generates this matrix from the camera’s position and orientation, additionally using the interPupillaryDistance and rightVergence properties to account for the offset and angle of a stereoscopic camera’s left viewpoint.

A renderer uses this matrix, along with the rightProjectionMatrix property and model matrices derived from the camera’s position and orientation (the transform property) and the content to be rendered, to transform vertex data to the renderer’s 2D screen space at render time.

See Also

Generating View and Projection Matrices

var leftViewMatrix: matrix_float4x4

The transformation matrix that determines the position and orientation of the camera’s left viewpoint relative to a scene.

var leftProjectionMatrix: matrix_float4x4

The transformation matrix that determines the extent of a scene visible to the camera’s left viewpoint.

var rightProjectionMatrix: matrix_float4x4

The transformation matrix that determines the extent of a scene visible to the camera’s right viewpoint.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software