![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]() |
gSPZViewPortFormatgSPZViewPort(Gfx *gp, Vp *vp)Arguments
This Z-Sort microcode GBI macro is roughly the same as the gSPViewPort GBI macro in F3DEX microcode. Although it sets the viewport, there are differences in the viewport data parameters. In Z-Sort microcode, the parameter to control Fog is specified to the Vp structure member variables vscale, vscale[3] of vtrans and vtrans[3] using this macro: vp->vp.scale[3] = GZ_VIEWPORT_FOG_S(in, out); vp->vp.trans[3] = GZ_VIEWPORT_FOG_T(in, out);
Start Fog from a distance of 3000 from the perspective. When specifying so that the background color is uniform at a distance of 4000, initialize as follows: Vp viewport = { SCREEN_WD*2, *SCREEN_HT*2, G_MAXZ/2, GZ_VIEWPORT_FOG_S (3000, 4000) SCREEN_WD*2, *SCREEN_HT*2, G_MAXZ/2, GZ_VIEWPORT_FOG_S (3000, 4000) } ;For detailed information on Z-Sort microcode's GBI macros and data structures, please see the "Z-Sort Microcode" area of the N64 Programming Manual. See Also Z-Sort Microcode gSPZRdpCmd gSPZSetUMem gSPZGetUMem gSPZSetMtx gSPZGetMtx gSPZMtxCat gSPZMtxTrnsp3x3 gSPZViewPort gSPZMultMPMtx gSPZSetAmbient gSPZSetDefuse gSPZSetLookAt gSPZXfmLights gSPZLight gSPZLightMaterial gSPZMixS16 gSPZMixS8 gSPZMixU8 gSPZSegment gSPZSetSubDL gSPZLinkSubDL gSPZSendMessage gSPZWaitSignal gSPZSegment gSPZPerspNormalize
|