perspectiveRT

Build a perspective projection matrix with NDC and DepthClip selected at run-time.

perspectiveRT
(
T
)
(,,
in T fovx
,
in T aspect
,
in T near
,
in T far
)

Return Value

Type: Mat4!T

a matrix that maps from eye space to clip space. To obtain NDC, the vector must be divided by w.

Meta