Mat4:fov

Sets a projection matrix using raw projection angles and clipping planes.

This can be used for asymmetric or oblique projections.

m = Mat4:fov(left, right, up, down, near, far)

Arguments

NameTypeDescription
leftnumberThe left half-angle of the projection, in radians.
rightnumberThe right half-angle of the projection, in radians.
upnumberThe top half-angle of the projection, in radians.
downnumberThe bottom half-angle of the projection, in radians.
nearnumberThe near plane of the projection.
farnumberThe far plane of the projection.

Returns

NameTypeDescription
mMat4The original matrix.

See also