ortho

Build an orthographic projection matrix with NDC determined at runtime

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

Parameters

ndc NDC

the target NDC

l T

X position of the left plane

r T

X position of the right plane

b T

Y position of the bottom plane

t T

Y position of the top 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

an affine matrix that maps from eye coordinates to NDC.

Meta