Skip to content

shz_xmtrx_apply_perspective

Markdown
SHZ_INLINE void shz_xmtrx_apply_perspective(float fov, float aspect, float znear) SHZ_NOEXCEPT;

Multiplies and accumulates the perspective matrix constructed from the given values onto XMTRX.

NameTypeDescription
fovfloat
aspectfloat
znearfloat

Nothing (void).

fr[n + 0]fr[n + 4]fr[n + 8]fr[n + 12]
cot(f)/a0.0f0.0f0.0f
0.0fcot(f)0.0f0.0f
0.0f0.0f0.0fnz
0.0f0.0f-1.0f0.0f