guPerspective
Creates a perspective projection matrix (floating point)
#include <ultra64.h> /* gu.h */
void guPerspectiveF(
float mf[4][4],
u16 *perspNorm,
float fovy,
float aspect,
float near,
float far,
float scale);
None.
Returns a perspective projection matrix to mf, and returns a numerical value to perspNorm for use by gSPPerspNormalize. When this function is called, the result is the creation of the following kind of projection matrix:
Both near and far must be positive values. This function specifies the viewable region of the perspective transformation (the viewing volume), which is shaped like a square-based pyramid with its top cut off. With this function, the pyramid has bilateral symmetry, whereas with guFrustumF you can define a pyramid that does not have bilateral symmetry. Fixed point is handled with the guPerspective function.
gSPPerspNormalize, guFrustum, guFrustumF, guOrtho, guOrthoF, and guPerspective
03/01/99 Completely rewritten.