MTX34ShadowProjectionOrtho

nn::math::MTX34ShadowProjectionOrtho Function

Syntax

NN_MATH_INLINE MTX34 * MTX34ShadowProjectionOrtho(
     MTX34 * pOut,
     f32 l,
     f32 r,
     f32 b,
     f32 t,
     f32 n,
     f32 f
);

Arguments

Name Description
out pOut Pointer to the buffer that receives the result of the calculation.
in l Left edge of the near clipping plane.
in r Right edge of the near clipping plane.
in b Bottom edge of the near clipping plane.
in t Top edge of the near clipping plane.
in n Distance from the camera to the near clipping plane.
in f Distance from the camera to the far clipping plane.

Return Values

Returns pOut.

Description

Creates an orthogonal projection matrix for referencing shadow textures.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL