frustum_LH_01

Build a perspective projection matrix with left-hand NDC and [0 .. 1] depth clipping

pure @safe @nogc nothrow
frustum_LH_01
(
T
)
(
in T l
,
in T r
,
in T b
,
in T t
,
in T n
,
in T f
)

Parameters

l T

X position of the left edge at the near plane

r T

X position of the right edge at the near plane

b T

Y position of the bottom edge at the near plane

t T

Y position of the top edge at the near plane

n T

distance from origin to near plane (in Z-)

f T

distance from origin to far plane (in Z-)

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