Pass:getProjection

Returns the projection for a single view.


left, right, up, down = Pass:getProjection(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.

matrix = Pass:getProjection(view, matrix)

Arguments

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

Returns

NameTypeDescription
matrixMat4 The matrix containing the projection.

See also