mirror of
https://github.com/n64decomp/sm64.git
synced 2024-11-13 21:05:03 -05:00
204 lines
12 KiB
C
204 lines
12 KiB
C
// 0x070174B0 - 0x070175A0
|
|
static const Vtx hmc_seg7_vertex_070174B0[] = {
|
|
{{{ -6962, 1536, 1408}, 0, { 7752, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1089, 691}, 0, { 0, 4426}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6962, 1275, 1408}, 0, { 7752, 2568}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5411, 509, 77}, 0, { 8242, 10214}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5411, 1536, 77}, 0, { 8242, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4582, 1536, 77}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4582, 1024, 77}, 0, { 0, 5076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5718, 1536, 691}, 0, { 6824, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5411, 509, 77}, 0, { 0, 10214}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5718, 919, 691}, 0, { 6824, 6126}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5411, 1536, 77}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1536, 691}, 0, { 9316, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5718, 919, 691}, 0, { 0, 6126}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1089, 691}, 0, { 9316, 4426}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5718, 1536, 691}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x070175A0 - 0x07017680
|
|
static const Vtx hmc_seg7_vertex_070175A0[] = {
|
|
{{{ -5096, 2867, -1610}, 0, { 0, 2010}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5551, 2867, -322}, 0, { 13254, 5076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5810, 2867, -486}, 0, { 13254, 2010}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6962, 1536, 1408}, 0, { 7752, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1536, 691}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1089, 691}, 0, { 0, 4426}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4577, 2867, -1280}, 0, { 0, 8142}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4318, 2867, -1115}, 0, { 0, 11208}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4483, 2867, -856}, 0, { 3034, 11208}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4742, 2867, -1021}, 0, { 3034, 8142}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5441, 2867, -1829}, 0, { 0, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2867, -2175}, 0, { -4118, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4098, 2867, -1460}, 0, { -4118, 11208}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4837, 2867, -1445}, 0, { 0, 5076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07017680 - 0x07017760
|
|
static const Vtx hmc_seg7_vertex_07017680[] = {
|
|
{{{ -5221, 2867, -2687}, 0, { 2810, -8908}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2867, -3199}, 0, { -9728, 1280}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2867, -1663}, 0, { 3202, 9510}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5441, 2867, -1829}, 0, { 0, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5763, 2867, -942}, 0, { 9166, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5936, 2867, -1052}, 0, { 9166, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5269, 2867, -1719}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6344, 2867, -1555}, 0, { 7122, -8208}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5826, 2867, -1225}, 0, { 7122, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6454, 2867, -1382}, 0, { 9166, -8208}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5119, 2867, -47}, 0, { 13254, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5441, 2867, -494}, 0, { 11210, 5076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5009, 2867, -219}, 0, { 11210, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5551, 2867, -322}, 0, { 13254, 5076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07017760 - 0x07017840
|
|
static const Vtx hmc_seg7_vertex_07017760[] = {
|
|
{{{ -3685, 3379, -1663}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4095, 2355, -1458}, 0, { 4538, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4095, 3379, -1458}, 0, { 4538, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2867, -1663}, 0, { 3202, 9510}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4095, 2867, -1458}, 0, { 7122, 7160}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2867, -2175}, 0, { 7122, -6164}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2867, -2687}, 0, { 2810, -8908}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4709, 2867, -3199}, 0, { -4242, -7340}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2867, -3199}, 0, { -9728, 1280}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 3379, -2175}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2355, -2687}, 0, { 5078, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 3379, -2687}, 0, { 5078, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2355, -2175}, 0, { 0, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2355, -1663}, 0, { 0, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07017840 - 0x07017900
|
|
static const Vtx hmc_seg7_vertex_07017840[] = {
|
|
{{{ -5221, 2355, -2687}, 0, { 10216, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 2355, -2175}, 0, { 7382, -3262}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4095, 2355, -1458}, 0, { -5938, -2978}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -3685, 2355, -1663}, 0, { -8206, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4709, 1536, 384}, 0, { -4118, -12296}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4582, 1536, 77}, 0, { -7184, -13566}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5411, 1536, 77}, 0, { -7184, -5292}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5221, 1536, 384}, 0, { -4118, -7186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5718, 1536, 691}, 0, { -1052, -2226}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5733, 1536, 1408}, 0, { 6100, -2076}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6655, 1536, 691}, 0, { -1052, 7120}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6962, 1536, 1408}, 0, { 6100, 10186}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07017900 - 0x070179F0
|
|
static const Vtx hmc_seg7_vertex_07017900[] = {
|
|
{{{ -7535, 1331, -1132}, 0, { 3674, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7156, 1331, -848}, 0, { -1052, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7156, 1229, -848}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6046, 1331, -1653}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6770, 1126, -2687}, 0, {-11608, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6046, 1126, -1653}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6770, 1331, -2687}, 0, {-11608, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1331, -2687}, 0, { 10290, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1331, -1653}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1126, -1653}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1126, -2687}, 0, { 10290, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1331, -1653}, 0, { 8300, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6046, 1331, -1653}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6046, 1126, -1653}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5211, 1126, -1653}, 0, { 8300, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x070179F0 - 0x07017AA0
|
|
static const Vtx hmc_seg7_vertex_070179F0[] = {
|
|
{{{ -7156, 1331, -848}, 0, { 5316, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7261, 1229, -323}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7156, 1229, -848}, 0, { 5316, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7535, 1331, -1132}, 0, { 3674, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7156, 1229, -848}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7535, 1229, -1132}, 0, { 3674, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7687, 1331, -261}, 0, { -3306, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7687, 1229, -261}, 0, { -3306, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7261, 1229, -323}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7261, 1331, -323}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -7261, 1331, -323}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07017AA0 - 0x07017C08
|
|
static const Gfx hmc_seg7_dl_07017AA0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09001000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(hmc_seg7_vertex_070174B0, 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(hmc_seg7_vertex_070175A0, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 10, 11, 0x0, 7, 11, 12, 0x0),
|
|
gsSP1Triangle( 0, 13, 1, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_07017680, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 5, 0x0),
|
|
gsSP2Triangles( 7, 5, 9, 0x0, 10, 11, 12, 0x0),
|
|
gsSP1Triangle(10, 13, 11, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_07017760, 14, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 5, 6, 0x0, 6, 7, 8, 0x0),
|
|
gsSP2Triangles( 9, 10, 11, 0x0, 9, 12, 10, 0x0),
|
|
gsSP1Triangle( 0, 13, 1, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_07017840, 12, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 7, 6, 8, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 9, 8, 10, 0x0, 9, 10, 11, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x07017C08 - 0x07017C98
|
|
static const Gfx hmc_seg7_dl_07017C08[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09003000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(hmc_seg7_vertex_07017900, 15, 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),
|
|
gsSP1Triangle(11, 13, 14, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_070179F0, 11, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 9, 6, 8, 0x0),
|
|
gsSP1Triangle( 0, 10, 1, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x07017C98 - 0x07017D70
|
|
const Gfx hmc_seg7_dl_07017C98[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_2CYCLE),
|
|
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2),
|
|
gsDPSetDepthSource(G_ZS_PIXEL),
|
|
gsDPSetFogColor(0, 0, 0, 255),
|
|
gsSPFogPosition(960, 1000),
|
|
gsSPSetGeometryMode(G_FOG),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
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(hmc_seg7_dl_07017AA0),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 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(hmc_seg7_dl_07017C08),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2),
|
|
gsSPClearGeometryMode(G_FOG),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|