al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
gSPPerspNormalizeFormat#include "gbi.h" gSPPerspNormalize(Gfx *gdl, u16 scale) gsSPPerspNormalize(u16 scale)Arguments
It normalizes the perspective. The scale value is used to scale the transformed w coordinate down prior to dividing out w to compute the screen coordinates, which are similarly scaled. The effect of this is to maximize the precision of this divide, which is computed with a limited precision in the RSP geometry engine. Note The library macro guPerspective returns one approximation for this scale value, which is suitable for most cases. This estimate normalizes w so that w = 1.0 halfway between the near and far clipping planes.
|