perspectiveMat

Creates a projection matrix (similar to gluPerspective)

@nogc pure nothrow
M
perspectiveMat
(
M = Mat4f
T = float
U = float
V = float
W = float
)
(
T fov
,,,)
if (
is4dMat!M &&
isNumeric!T
&&
isNumeric!U
&&
isNumeric!V
&&
isNumeric!W
)

Parameters

fov T

Field of View in radians (PI_2 -> 90º)

aspect U

Aspect ratio (x/y)

zMin V

Near clipping plane

zMax W

Far clipping plane Returns a perspective projection matrix

Meta