Mat4:fov

Sets a projection matrix using raw projection values.

This can be used for asymmetric or oblique projections.

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

Arguments

NameTypeDescription
leftnumberThe left angle of the projection.
rightnumberThe right angle of the projection.
upnumberThe top angle of the projection.
bottomnumberThe bottom angle of the projection.
nearnumberThe near plane of the projection.
farnumberThe far plane of the projection.

Returns

NameTypeDescription
mMat4The original matrix.

See also