Add F3DEX2_Rej

This commit is contained in:
Arceveti
2021-09-17 17:32:11 -07:00
parent 55017da993
commit 38fdbb6ec3
2 changed files with 18 additions and 4 deletions

View File

@@ -43,6 +43,11 @@ glabel gspF3DZEX2_PosLight_fifoTextStart
.incbin "lib/PR/f3dzex/F3DZEX.bin"
glabel gspF3DZEX2_PosLight_fifoTextEnd
.balign 16
glabel gspF3DEX2_Rej_fifoTextStart
.incbin "lib/PR/f3dex2/F3DEX2_Rej.bin"
glabel gspF3DEX2_Rej_fifoTextEnd
.balign 16
glabel gspF3DLX2_Rej_fifoTextStart
.incbin "lib/PR/f3dex2/F3DLX2_Rej.bin"
@@ -192,12 +197,17 @@ glabel gspFast3D_fifoDataEnd
glabel gspF3DEX2_fifoDataStart
.incbin "lib/PR/f3dex2/F3DEX2_data.bin"
glabel gspF3DEX2_fifoDataEnd
.balign 16
glabel gspF3DZEX2_PosLight_fifoDataStart
.incbin "lib/PR/f3dzex/F3DZEX_data.bin"
glabel gspF3DZEX2_PosLight_fifoDataEnd
.balign 16
glabel gspF3DEX2_Rej_fifoDataStart
.incbin "lib/PR/f3dex2/F3DEX2_Rej_data.bin"
glabel gspF3DEX2_Rej_fifoDataEnd
.balign 16
glabel gspF3DLX2_Rej_fifoDataStart
.incbin "lib/PR/f3dex2/F3DLX2_Rej_data.bin"

View File

@@ -168,7 +168,11 @@ static void geo_process_master_list_sub(struct GraphNodeMasterList *node) {
//Load rejection on pass 2. ZEX is loaded afterwards.
if (renderPhase == 0 || renderPhase == 2)
{
gSPLoadUcodeL(gDisplayListHead++, gspF3DLX2_Rej_fifo);
if (gIsConsole) {
gSPLoadUcodeL(gDisplayListHead++, gspF3DLX2_Rej_fifo);
} else {
gSPLoadUcodeL(gDisplayListHead++, gspF3DEX2_Rej_fifo);
}
init_rcp(KEEP_ZBUFFER);
gSPClipRatio(gDisplayListHead++, FRUSTRATIO_2);
}
@@ -213,7 +217,7 @@ static void geo_process_master_list_sub(struct GraphNodeMasterList *node) {
switch (renderPhase)
{
case 0: renderPhase++; j = 0; i = 0; goto loopBegin;
case 1: renderPhase++; j = 1; i = 5; goto loopBegin;
case 1: renderPhase++; j = 1; i = 5; goto loopBegin;
}
if (enableZBuffer != 0)
{