Pass:getProjection

Edit

Returns the projection for a single view.



Arguments

NameTypeDescription
viewnumber The view index.

Returns

NameTypeDescription
leftnumber The left field of view angle, in radians.
rightnumber The right field of view angle, in radians.
upnumber The top field of view angle, in radians.
downnumber The bottom field of view angle, in radians.

Arguments

NameTypeDescription
viewnumber The view index.
matrixMat4 The matrix to fill with the projection.

Returns

NameTypeDescription
matrixMat4 The matrix containing the projection.

See also