sm64coopdx/levels/rr/tricky_triangles_3/model.inc.c

311 lines
14 KiB
C

#include "pc/rom_assets.h"
// 0x07021190 - 0x07021280
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021190, 0x00437870, 75979, 0x0001e518, 240);
// 0x07021280 - 0x07021370
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021280, 0x00437870, 75979, 0x0001e608, 240);
// 0x07021370 - 0x07021460
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021370, 0x00437870, 75979, 0x0001e6f8, 240);
// 0x07021460 - 0x07021540
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021460, 0x00437870, 75979, 0x0001e7e8, 224);
// 0x07021540 - 0x07021620
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021540, 0x00437870, 75979, 0x0001e8c8, 224);
// 0x07021620 - 0x07021710
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021620, 0x00437870, 75979, 0x0001c020, 240);
// 0x07021710 - 0x07021800
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021710, 0x00437870, 75979, 0x0001ea98, 240);
// 0x07021800 - 0x070218F0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021800, 0x00437870, 75979, 0x0001eb88, 240);
// 0x070218F0 - 0x070219F0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_070218F0, 0x00437870, 75979, 0x0001ec78, 256);
// 0x070219F0 - 0x07021AE0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_070219F0, 0x00437870, 75979, 0x0001ed78, 240);
// 0x07021AE0 - 0x07021BD0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021AE0, 0x00437870, 75979, 0x000218f8, 240);
// 0x07021BD0 - 0x07021CD0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021BD0, 0x00437870, 75979, 0x0001ef58, 256);
// 0x07021CD0 - 0x07021DC0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021CD0, 0x00437870, 75979, 0x0001f058, 240);
// 0x07021DC0 - 0x07021EC0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021DC0, 0x00437870, 75979, 0x0001f148, 256);
// 0x07021EC0 - 0x07021FA0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021EC0, 0x00437870, 75979, 0x00021cd8, 224);
// 0x07021FA0 - 0x07022080
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07021FA0, 0x00437870, 75979, 0x00021db8, 224);
// 0x07022080 - 0x07022170
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022080, 0x00437870, 75979, 0x00021e98, 240);
// 0x07022170 - 0x07022260
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022170, 0x00437870, 75979, 0x00021f88, 240);
// 0x07022260 - 0x07022350
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022260, 0x00437870, 75979, 0x00022078, 240);
// 0x07022350 - 0x07022440
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022350, 0x00437870, 75979, 0x00022168, 240);
// 0x07022440 - 0x07022530
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022440, 0x00437870, 75979, 0x0001f7c8, 240);
// 0x07022530 - 0x07022620
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022530, 0x00437870, 75979, 0x00022348, 240);
// 0x07022620 - 0x07022710
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022620, 0x00437870, 75979, 0x00022438, 240);
// 0x07022710 - 0x070227B0
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022710, 0x00437870, 75979, 0x00022528, 160);
// 0x070227B0 - 0x07022890
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_070227B0, 0x00437870, 75979, 0x000225c8, 224);
// 0x07022890 - 0x07022990
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022890, 0x00437870, 75979, 0x000226a8, 256);
// 0x07022990 - 0x07022A90
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022990, 0x00437870, 75979, 0x000227a8, 256);
// 0x07022A90 - 0x07022B80
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022A90, 0x00437870, 75979, 0x000228a8, 240);
// 0x07022B80 - 0x07022C70
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022B80, 0x00437870, 75979, 0x00022998, 240);
// 0x07022C70 - 0x07022D60
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022C70, 0x00437870, 75979, 0x00022a88, 240);
// 0x07022D60 - 0x07022E50
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022D60, 0x00437870, 75979, 0x00022b78, 240);
// 0x07022E50 - 0x07022F40
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022E50, 0x00437870, 75979, 0x00022c68, 240);
// 0x07022F40 - 0x07023030
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07022F40, 0x00437870, 75979, 0x00022d58, 240);
// 0x07023030 - 0x07023130
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07023030, 0x00437870, 75979, 0x00022e48, 256);
// 0x07023130 - 0x07023230
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07023130, 0x00437870, 75979, 0x00022f48, 256);
// 0x07023230 - 0x07023300
ROM_ASSET_LOAD_VTX(rr_seg7_vertex_07023230, 0x00437870, 75979, 0x00023048, 208);
// 0x07023300 - 0x07023910
static const Gfx rr_seg7_dl_07023300[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09000800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(rr_seg7_vertex_07021190, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(rr_seg7_vertex_07021280, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSP1Triangle( 0, 2, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07021370, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07021460, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
gsSPVertex(rr_seg7_vertex_07021540, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSPVertex(rr_seg7_vertex_07021620, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07021710, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07021800, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_070218F0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 5, 0x0, 10, 11, 12, 0x0),
gsSP1Triangle(13, 14, 15, 0x0),
gsSPVertex(rr_seg7_vertex_070219F0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07021AE0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 8, 0x0),
gsSP2Triangles( 6, 8, 4, 0x0, 9, 10, 11, 0x0),
gsSP2Triangles( 9, 12, 10, 0x0, 12, 13, 10, 0x0),
gsSP1Triangle(12, 14, 13, 0x0),
gsSPVertex(rr_seg7_vertex_07021BD0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 3, 6, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
gsSP2Triangles(11, 12, 13, 0x0, 11, 13, 9, 0x0),
gsSP2Triangles( 0, 14, 1, 0x0, 14, 15, 1, 0x0),
gsSPVertex(rr_seg7_vertex_07021CD0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0),
gsSP2Triangles( 6, 8, 7, 0x0, 9, 10, 11, 0x0),
gsSP2Triangles( 9, 11, 12, 0x0, 10, 13, 11, 0x0),
gsSP1Triangle(10, 14, 13, 0x0),
gsSPVertex(rr_seg7_vertex_07021DC0, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 1, 4, 5, 0x0, 1, 5, 2, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(rr_seg7_vertex_07021EC0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSPVertex(rr_seg7_vertex_07021FA0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSPVertex(rr_seg7_vertex_07022080, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(rr_seg7_vertex_07022170, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSP1Triangle( 4, 6, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022260, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022350, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
gsSP1Triangle( 0, 2, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022440, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022530, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSP1Triangle( 0, 14, 1, 0x0),
gsSPVertex(rr_seg7_vertex_07022620, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 14, 12, 0x0),
gsSPVertex(rr_seg7_vertex_07022710, 10, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 1, 7, 0x0, 6, 7, 8, 0x0),
gsSP1Triangle( 0, 9, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x07023910 - 0x07023B90
static const Gfx rr_seg7_dl_07023910[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09002000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(rr_seg7_vertex_070227B0, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 10, 0x0),
gsSPVertex(rr_seg7_vertex_07022890, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 4, 0x0),
gsSP2Triangles( 5, 6, 7, 0x0, 8, 9, 10, 0x0),
gsSP2Triangles(11, 12, 13, 0x0, 14, 13, 15, 0x0),
gsSPVertex(rr_seg7_vertex_07022990, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 8, 10, 0x0),
gsSP2Triangles(11, 12, 13, 0x0, 14, 15, 12, 0x0),
gsSPVertex(rr_seg7_vertex_07022A90, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022B80, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022C70, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022D60, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022E50, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07022F40, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(rr_seg7_vertex_07023030, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 10, 0x0),
gsSP2Triangles(11, 12, 13, 0x0, 12, 14, 15, 0x0),
gsSPVertex(rr_seg7_vertex_07023130, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 7, 9, 10, 0x0),
gsSP2Triangles( 1, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(rr_seg7_vertex_07023230, 13, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 4, 0x0),
gsSP2Triangles( 5, 6, 7, 0x0, 8, 5, 9, 0x0),
gsSP1Triangle(10, 11, 12, 0x0),
gsSPEndDisplayList(),
};
// 0x07023B90 - 0x07023C20
const Gfx rr_seg7_dl_07023B90[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_LIGHTING),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(rr_seg7_dl_07023300),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(rr_seg7_dl_07023910),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};