sm64coopdx/levels/ttm/areas/1/17/2.inc.c

179 lines
10 KiB
C
Raw Normal View History

2019-12-02 03:52:53 +01:00
// 0x0700F300 - 0x0700F318
static const Lights1 ttm_seg7_lights_0700F300 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
2019-11-03 20:36:27 +01:00
// 0x0700F318 - 0x0700F418
static const Vtx ttm_seg7_vertex_0700F318[] = {
{{{ 515, 202, -402}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 474, 202, -408}, 0, { 258, 700}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 491, 202, -385}, 0, { 0, 700}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -31, 202, -485}, 0, { 258, 1278}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 8, 202, -479}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -8, 202, -502}, 0, { 0, 1278}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -14, 202, -462}, 0, { 258, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 18, 202, 388}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -22, 202, 382}, 0, { 376, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -28, 202, 422}, 0, { 376, 582}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 12, 202, 429}, 0, { 0, 582}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -488, 202, 312}, 0, { 376, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -453, 202, 359}, 0, { 0, 582}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -447, 202, 318}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -494, 202, 352}, 0, { 376, 582}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 497, 202, -426}, 0, { 258, 990}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0700F418 - 0x0700F508
static const Vtx ttm_seg7_vertex_0700F418[] = {
{{{ -14, -250, -462}, 0, { 3982, 700}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ -31, 202, -485}, 0, { 0, 990}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ -31, -252, -485}, 0, { 4002, 990}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ -31, -252, -485}, 0, { 4002, 700}, {0xb5, 0x00, 0x9a, 0xff}}},
{{{ -31, 202, -485}, 0, { 0, 700}, {0xb5, 0x00, 0x9a, 0xff}}},
{{{ -8, 202, -502}, 0, { 0, 990}, {0xb5, 0x00, 0x9a, 0xff}}},
{{{ -8, -248, -502}, 0, { 3970, 990}, {0xb5, 0x00, 0x9a, 0xff}}},
{{{ -8, -248, -502}, 0, { 3970, 700}, {0x68, 0x00, 0xb8, 0xff}}},
{{{ -8, 202, -502}, 0, { 0, 700}, {0x68, 0x00, 0xb8, 0xff}}},
{{{ 8, 202, -479}, 0, { 0, 990}, {0x68, 0x00, 0xb8, 0xff}}},
{{{ 8, -246, -479}, 0, { 3950, 990}, {0x68, 0x00, 0xb8, 0xff}}},
{{{ 8, -246, -479}, 0, { 3950, 700}, {0x4d, 0x00, 0x64, 0xff}}},
{{{ -14, 202, -462}, 0, { 0, 990}, {0x4d, 0x00, 0x64, 0xff}}},
{{{ -14, -250, -462}, 0, { 3982, 990}, {0x4d, 0x00, 0x64, 0xff}}},
{{{ 8, 202, -479}, 0, { 0, 700}, {0x4d, 0x00, 0x64, 0xff}}},
};
// 0x0700F508 - 0x0700F5F8
static const Vtx ttm_seg7_vertex_0700F508[] = {
{{{ 515, -171, -402}, 0, { -2996, 702}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ 497, -174, -426}, 0, { -3018, 990}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ 497, 202, -426}, 0, { 238, 990}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ -14, -250, -462}, 0, { 3982, 700}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ -14, 202, -462}, 0, { 0, 700}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ -31, 202, -485}, 0, { 0, 990}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ 491, -175, -385}, 0, { -2358, 1278}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ 491, 202, -385}, 0, { 990, 1278}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ 474, 202, -408}, 0, { 990, 990}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ 474, -177, -408}, 0, { -2380, 990}, {0x9a, 0x00, 0x4b, 0xff}}},
{{{ 497, 202, -426}, 0, { 990, 700}, {0xb2, 0x00, 0x9c, 0xff}}},
{{{ 497, -174, -426}, 0, { -2266, 702}, {0xb2, 0x00, 0x9c, 0xff}}},
{{{ 474, -177, -408}, 0, { -2302, 990}, {0xb2, 0x00, 0x9c, 0xff}}},
{{{ 474, 202, -408}, 0, { 990, 990}, {0xb2, 0x00, 0x9c, 0xff}}},
{{{ 515, 202, -402}, 0, { 238, 700}, {0x65, 0x00, 0xb4, 0xff}}},
};
// 0x0700F5F8 - 0x0700F6E8
static const Vtx ttm_seg7_vertex_0700F5F8[] = {
{{{ -28, -104, 422}, 0, { -540, 1396}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -22, 202, 382}, 0, { 2012, 990}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -22, -104, 382}, 0, { -540, 990}, {0x83, 0x00, 0xee, 0xff}}},
{{{ 515, -171, -402}, 0, { -2326, 1278}, {0x49, 0x00, 0x67, 0xff}}},
{{{ 515, 202, -402}, 0, { 990, 1278}, {0x49, 0x00, 0x67, 0xff}}},
{{{ 491, 202, -385}, 0, { 990, 990}, {0x49, 0x00, 0x67, 0xff}}},
{{{ 491, -175, -385}, 0, { -2358, 990}, {0x49, 0x00, 0x67, 0xff}}},
{{{ 18, -104, 388}, 0, { -1052, 990}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ 18, 202, 388}, 0, { 1502, 990}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ 12, 202, 429}, 0, { 1502, 582}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ 12, -104, 429}, 0, { -1052, 582}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ 12, -104, 429}, 0, { -542, 1396}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -28, 202, 422}, 0, { 2012, 990}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -28, -104, 422}, 0, { -540, 990}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ 12, 202, 429}, 0, { 2012, 1396}, {0xeb, 0x00, 0x7d, 0xff}}},
};
// 0x0700F6E8 - 0x0700F7D8
static const Vtx ttm_seg7_vertex_0700F6E8[] = {
{{{ -447, -104, 318}, 0, { 0, 990}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ -447, 202, 318}, 0, { 2524, 990}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ -453, 202, 359}, 0, { 2524, 582}, {0x7d, 0x00, 0x12, 0xff}}},
{{{ -28, -104, 422}, 0, { -540, 1396}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -28, 202, 422}, 0, { 2012, 1396}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -22, 202, 382}, 0, { 2012, 990}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -22, -104, 382}, 0, { -1052, 990}, {0x12, 0x00, 0x83, 0xff}}},
{{{ 18, 202, 388}, 0, { 1500, 582}, {0x12, 0x00, 0x83, 0xff}}},
{{{ 18, -104, 388}, 0, { -1052, 582}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -22, 202, 382}, 0, { 1500, 990}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -488, -104, 312}, 0, { -1052, 990}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -447, 202, 318}, 0, { 1500, 582}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -447, -104, 318}, 0, { -1052, 582}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -488, 202, 312}, 0, { 1500, 990}, {0x12, 0x00, 0x83, 0xff}}},
{{{ -453, -104, 359}, 0, { 0, 582}, {0x7d, 0x00, 0x12, 0xff}}},
};
// 0x0700F7D8 - 0x0700F858
static const Vtx ttm_seg7_vertex_0700F7D8[] = {
{{{ -453, -104, 359}, 0, { -540, 1396}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -494, 202, 352}, 0, { 2012, 990}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -494, -104, 352}, 0, { -540, 990}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -453, 202, 359}, 0, { 2012, 1396}, {0xeb, 0x00, 0x7d, 0xff}}},
{{{ -494, -104, 352}, 0, { 2524, 582}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -488, 202, 312}, 0, { 0, 990}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -488, -104, 312}, 0, { 2524, 990}, {0x83, 0x00, 0xee, 0xff}}},
{{{ -494, 202, 352}, 0, { 0, 582}, {0x83, 0x00, 0xee, 0xff}}},
};
// 0x0700F858 - 0x0700F8D0
static const Gfx ttm_seg7_dl_0700F858[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
2019-12-02 03:52:53 +01:00
gsSPLight(&ttm_seg7_lights_0700F300.l, 1),
gsSPLight(&ttm_seg7_lights_0700F300.a, 2),
2019-11-03 20:36:27 +01:00
gsSPVertex(ttm_seg7_vertex_0700F318, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP2Triangles(11, 14, 12, 0x0, 0, 15, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0700F8D0 - 0x0700FA18
static const Gfx ttm_seg7_dl_0700F8D0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(ttm_seg7_vertex_0700F418, 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(ttm_seg7_vertex_0700F508, 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, 12, 13, 0x0),
gsSP1Triangle(14, 0, 2, 0x0),
gsSPVertex(ttm_seg7_vertex_0700F5F8, 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(ttm_seg7_vertex_0700F6E8, 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, 13, 11, 0x0),
gsSP1Triangle( 0, 2, 14, 0x0),
gsSPVertex(ttm_seg7_vertex_0700F7D8, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSPEndDisplayList(),
};
// 0x0700FA18 - 0x0700FA90
const Gfx ttm_seg7_dl_0700FA18[] = {
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_0700F858),
gsSPDisplayList(ttm_seg7_dl_0700F8D0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};