mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
219 lines
12 KiB
C
219 lines
12 KiB
C
// 0x0700D700 - 0x0700D718
|
|
static const Lights1 ttm_seg7_lights_0700D700 = gdSPDefLights1(
|
|
0x7f, 0x7f, 0x7f,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700D718 - 0x0700D730
|
|
static const Lights1 ttm_seg7_lights_0700D718 = gdSPDefLights1(
|
|
0x4c, 0x4c, 0x4c,
|
|
0x99, 0x99, 0x99, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700D730 - 0x0700D748
|
|
static const Lights1 ttm_seg7_lights_0700D730 = gdSPDefLights1(
|
|
0x5d, 0x5d, 0x5d,
|
|
0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700D748 - 0x0700D848
|
|
static const Vtx ttm_seg7_vertex_0700D748[] = {
|
|
{{{ 717, 227, -204}, 0, { 5282, -7594}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1280, 227, -511}, 0, { 6406, -8208}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 717, 227, -716}, 0, { 5282, -8616}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 717, 227, -716}, 0, { 5282, -8616}, {0x12, 0x72, 0xcd, 0xff}}},
|
|
{{{ 1280, 227, -511}, 0, { 6406, -8208}, {0x12, 0x72, 0xcd, 0xff}}},
|
|
{{{ 871, -28, -1230}, 0, { 5590, -9644}, {0x12, 0x72, 0xcd, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 5794, -7186}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 614, 126, 303}, 0, { 5078, -6580}, {0xf9, 0x7a, 0x20, 0xff}}},
|
|
{{{ 1015, 127, 386}, 0, { 5878, -6416}, {0xf9, 0x7a, 0x20, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 5794, -7186}, {0xf9, 0x7a, 0x20, 0xff}}},
|
|
{{{ 614, 126, 303}, 0, { 5078, -6580}, {0xf0, 0x7c, 0x15, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 5794, -7186}, {0xf0, 0x7c, 0x15, 0xff}}},
|
|
{{{ 717, 227, -204}, 0, { 5282, -7594}, {0xf0, 0x7c, 0x15, 0xff}}},
|
|
{{{ 614, 126, 303}, 0, { 5078, -6580}, {0x00, 0x7e, 0x00, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 5210, -6304}, {0x00, 0x7e, 0x00, 0xff}}},
|
|
{{{ 1015, 127, 386}, 0, { 5878, -6416}, {0x00, 0x7e, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x0700D848 - 0x0700D938
|
|
static const Vtx ttm_seg7_vertex_0700D848[] = {
|
|
{{{ -537, 182, 1246}, 0, { 2778, -4700}, {0x34, 0x73, 0x05, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 2824, -5106}, {0x34, 0x73, 0x05, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 2464, -5558}, {0x34, 0x73, 0x05, 0xff}}},
|
|
{{{ -944, 275, 1200}, 0, { 1964, -4792}, {0x1a, 0x7b, 0x11, 0xff}}},
|
|
{{{ -537, 182, 1246}, 0, { 2778, -4700}, {0x1a, 0x7b, 0x11, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 2464, -5558}, {0x1a, 0x7b, 0x11, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 2824, -5106}, {0x06, 0x7e, 0x00, 0xff}}},
|
|
{{{ -537, 182, 1246}, 0, { 2778, -4700}, {0x06, 0x7e, 0x00, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 5210, -6304}, {0x06, 0x7e, 0x00, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 2824, -5106}, {0x04, 0x7e, 0xfd, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 5210, -6304}, {0x04, 0x7e, 0xfd, 0xff}}},
|
|
{{{ 614, 126, 303}, 0, { 5078, -6580}, {0x04, 0x7e, 0xfd, 0xff}}},
|
|
{{{ -1125, 275, 973}, 0, { 1604, -5244}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -944, 275, 1200}, 0, { 1964, -4792}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 2464, -5558}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x0700D938 - 0x0700D9F8
|
|
static const Vtx ttm_seg7_vertex_0700D938[] = {
|
|
{{{ -1282, 275, 545}, 0, { 1290, -6098}, {0xfe, 0x7e, 0x00, 0xff}}},
|
|
{{{ -1125, 275, 973}, 0, { 1604, -5244}, {0xfe, 0x7e, 0x00, 0xff}}},
|
|
{{{ -875, 284, 336}, 0, { 2102, -6516}, {0xfe, 0x7e, 0x00, 0xff}}},
|
|
{{{ 1015, -180, 386}, 0, { -286, 1978}, {0x7e, 0x00, 0xf3, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 1302, 990}, {0x7e, 0x00, 0xf3, 0xff}}},
|
|
{{{ 1015, 127, 386}, 0, { 0, 990}, {0x7e, 0x00, 0xf3, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { -294, 348}, {0x87, 0xec, 0xe4, 0xff}}},
|
|
{{{ 614, 126, 303}, 0, { 0, 990}, {0x87, 0xec, 0xe4, 0xff}}},
|
|
{{{ 717, 227, -204}, 0, { 1726, 990}, {0x87, 0xec, 0xe4, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { -294, 348}, {0x83, 0x00, 0xee, 0xff}}},
|
|
{{{ 717, 227, -204}, 0, { 1726, 990}, {0x83, 0x00, 0xee, 0xff}}},
|
|
{{{ 717, -284, -204}, 0, { 1400, -682}, {0x83, 0x00, 0xee, 0xff}}},
|
|
};
|
|
|
|
// 0x0700D9F8 - 0x0700DAE8
|
|
static const Vtx ttm_seg7_vertex_0700D9F8[] = {
|
|
{{{ -694, 275, 816}, 0, { 2142, -6010}, {0x61, 0xaf, 0x0b, 0xff}}},
|
|
{{{ -921, 28, 996}, 0, { 2116, -5516}, {0x61, 0xaf, 0x0b, 0xff}}},
|
|
{{{ -875, 28, 592}, 0, { 2732, -5538}, {0x61, 0xaf, 0x0b, 0xff}}},
|
|
{{{ -875, 28, 592}, 0, { 2732, -5538}, {0x6f, 0xd6, 0xd6, 0xff}}},
|
|
{{{ -875, 284, 336}, 0, { 3136, -6062}, {0x6f, 0xd6, 0xd6, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 2142, -6010}, {0x6f, 0xd6, 0xd6, 0xff}}},
|
|
{{{ -921, 28, 996}, 0, { 0, 990}, {0xd5, 0xb2, 0x59, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 1384, 990}, {0xd5, 0xb2, 0x59, 0xff}}},
|
|
{{{ -944, 275, 1200}, 0, { 36, -48}, {0xd5, 0xb2, 0x59, 0xff}}},
|
|
{{{ -944, 275, 1200}, 0, { 36, -48}, {0xe7, 0xc8, 0x6e, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 1384, 990}, {0xe7, 0xc8, 0x6e, 0xff}}},
|
|
{{{ -537, 182, 1246}, 0, { 1384, 232}, {0xe7, 0xc8, 0x6e, 0xff}}},
|
|
{{{ 1280, 227, -511}, 0, { 32, -648}, {0x51, 0xa0, 0xf5, 0xff}}},
|
|
{{{ 717, -284, -204}, 0, { 0, 990}, {0x51, 0xa0, 0xf5, 0xff}}},
|
|
{{{ 871, -28, -1230}, 0, { 1712, -240}, {0x51, 0xa0, 0xf5, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DAE8 - 0x0700DBD8
|
|
static const Vtx ttm_seg7_vertex_0700DAE8[] = {
|
|
{{{ 717, -284, -204}, 0, { 1956, 990}, {0x5b, 0xbc, 0x37, 0xff}}},
|
|
{{{ 1280, 227, -511}, 0, { 2566, -1672}, {0x5b, 0xbc, 0x37, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 848, -692}, {0x5b, 0xbc, 0x37, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 408, -356}, {0x17, 0xaa, 0xa7, 0xff}}},
|
|
{{{ -921, 28, 996}, 0, { 0, 990}, {0x17, 0xaa, 0xa7, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 1234, 990}, {0x17, 0xaa, 0xa7, 0xff}}},
|
|
{{{ -921, 28, 996}, 0, { 0, 990}, {0xab, 0xc0, 0x44, 0xff}}},
|
|
{{{ -944, 275, 1200}, 0, { -106, 314}, {0xab, 0xc0, 0x44, 0xff}}},
|
|
{{{ -1125, 275, 973}, 0, { -706, 1064}, {0xab, 0xc0, 0x44, 0xff}}},
|
|
{{{ -921, 28, 996}, 0, { 0, 990}, {0xa1, 0xb5, 0x23, 0xff}}},
|
|
{{{ -1125, 275, 973}, 0, { -706, 1064}, {0xa1, 0xb5, 0x23, 0xff}}},
|
|
{{{ -1282, 275, 545}, 0, { -1230, 2488}, {0xa1, 0xb5, 0x23, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 0, 990}, {0x51, 0xd1, 0xac, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 980, 990}, {0x51, 0xd1, 0xac, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 1420, 368}, {0x51, 0xd1, 0xac, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DBD8 - 0x0700DCC8
|
|
static const Vtx ttm_seg7_vertex_0700DBD8[] = {
|
|
{{{ 614, 126, 303}, 0, { 4462, 990}, {0xbc, 0xe1, 0x9a, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 4466, 288}, {0xbc, 0xe1, 0x9a, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 0, 990}, {0xbc, 0xe1, 0x9a, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 4466, 288}, {0xbc, 0xd3, 0xa0, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { -222, 258}, {0xbc, 0xd3, 0xa0, 0xff}}},
|
|
{{{ -514, 182, 1042}, 0, { 0, 990}, {0xbc, 0xd3, 0xa0, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 0, 990}, {0x3f, 0xd2, 0x63, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 4582, 232}, {0x3f, 0xd2, 0x63, 0xff}}},
|
|
{{{ -537, 182, 1246}, 0, { -278, 276}, {0x3f, 0xd2, 0x63, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 0, 2896}, {0xf1, 0xa9, 0xa6, 0xff}}},
|
|
{{{ 1015, -180, 386}, 0, { 1186, 1472}, {0xf1, 0xa9, 0xa6, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 0, 990}, {0xf1, 0xa9, 0xa6, 0xff}}},
|
|
{{{ 717, -284, -204}, 0, { 1956, 990}, {0x64, 0xbe, 0x27, 0xff}}},
|
|
{{{ 973, 227, 0}, 0, { 848, -692}, {0x64, 0xbe, 0x27, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 0, 990}, {0x64, 0xbe, 0x27, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DCC8 - 0x0700DD28
|
|
static const Vtx ttm_seg7_vertex_0700DCC8[] = {
|
|
{{{ -921, 28, 996}, 0, { 0, 990}, {0xbf, 0x94, 0xf9, 0xff}}},
|
|
{{{ -1282, 275, 545}, 0, { -1230, 2488}, {0xbf, 0x94, 0xf9, 0xff}}},
|
|
{{{ -875, 28, 592}, 0, { 120, 2334}, {0xbf, 0x94, 0xf9, 0xff}}},
|
|
{{{ -526, -21, 1145}, 0, { 0, 990}, {0x3e, 0xc8, 0x5f, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 4660, 990}, {0x3e, 0xc8, 0x5f, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 4582, 232}, {0x3e, 0xc8, 0x5f, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DD28 - 0x0700DD88
|
|
static const Vtx ttm_seg7_vertex_0700DD28[] = {
|
|
{{{ 681, 127, 442}, 0, { 4582, 232}, {0xe9, 0xd2, 0x73, 0xff}}},
|
|
{{{ 637, -77, 350}, 0, { 4660, 990}, {0xe9, 0xd2, 0x73, 0xff}}},
|
|
{{{ 1015, -180, 386}, 0, { 5644, 902}, {0xe9, 0xd2, 0x73, 0xff}}},
|
|
{{{ 1015, -180, 386}, 0, { 5644, 902}, {0x15, 0x00, 0x7d, 0xff}}},
|
|
{{{ 1015, 127, 386}, 0, { 5604, -14}, {0x15, 0x00, 0x7d, 0xff}}},
|
|
{{{ 681, 127, 442}, 0, { 4582, 232}, {0x15, 0x00, 0x7d, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DD88 - 0x0700DDB8
|
|
static const Vtx ttm_seg7_vertex_0700DD88[] = {
|
|
{{{ -1125, 275, 973}, 0, { 1604, -5244}, {0x00, 0x7e, 0x02, 0xff}}},
|
|
{{{ -694, 275, 816}, 0, { 2464, -5558}, {0x00, 0x7e, 0x02, 0xff}}},
|
|
{{{ -875, 284, 336}, 0, { 2102, -6516}, {0x00, 0x7e, 0x02, 0xff}}},
|
|
};
|
|
|
|
// 0x0700DDB8 - 0x0700DF78
|
|
static const Gfx ttm_seg7_dl_0700DDB8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&ttm_seg7_lights_0700D700.l, 1),
|
|
gsSPLight(&ttm_seg7_lights_0700D700.a, 2),
|
|
gsSPVertex(ttm_seg7_vertex_0700D748, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 0, 6, 1, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(ttm_seg7_vertex_0700D848, 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(ttm_seg7_vertex_0700D938, 12, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
|
|
gsSPLight(&ttm_seg7_lights_0700D718.l, 1),
|
|
gsSPLight(&ttm_seg7_lights_0700D718.a, 2),
|
|
gsSPVertex(ttm_seg7_vertex_0700D9F8, 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(ttm_seg7_vertex_0700DAE8, 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(ttm_seg7_vertex_0700DBD8, 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(ttm_seg7_vertex_0700DCC8, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSPLight(&ttm_seg7_lights_0700D730.l, 1),
|
|
gsSPLight(&ttm_seg7_lights_0700D730.a, 2),
|
|
gsSPVertex(ttm_seg7_vertex_0700DD28, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSPLight(&ttm_seg7_lights_0700D700.l, 1),
|
|
gsSPLight(&ttm_seg7_lights_0700D700.a, 2),
|
|
gsSPVertex(ttm_seg7_vertex_0700DD88, 3, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700DF78 - 0x0700DFE8
|
|
const Gfx ttm_seg7_dl_0700DF78[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
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(ttm_seg7_dl_0700DDB8),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|