mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 05:55:15 +00:00
113 lines
6.5 KiB
C
113 lines
6.5 KiB
C
// 0x0700FAB0 - 0x0700FBA0
|
|
static const Vtx hmc_seg7_vertex_0700FAB0[] = {
|
|
{{{ 1137, 358, 6543}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1014, 563, 6543}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1137, 563, 6543}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6973, 563, 3697}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6851, 358, 3697}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6973, 358, 3697}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6851, 563, 3697}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 358, 3799}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 563, 3594}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 563, 3799}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 358, 3594}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1075, 563, 6441}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1075, 563, 6646}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1075, 358, 6646}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1075, 358, 6441}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x0700FBA0 - 0x0700FC90
|
|
static const Vtx hmc_seg7_vertex_0700FBA0[] = {
|
|
{{{ 6482, 358, 3123}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 358, 3328}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 563, 3328}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1137, 358, 6543}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1014, 358, 6543}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 1014, 563, 6543}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6973, 358, 6543}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6851, 563, 6543}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6973, 563, 6543}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6851, 358, 6543}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 563, 6441}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 358, 6646}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 358, 6441}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6912, 563, 6646}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 563, 3123}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x0700FC90 - 0x0700FD80
|
|
static const Vtx hmc_seg7_vertex_0700FC90[] = {
|
|
{{{ 3878, 819, 1034}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3756, 614, 1034}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3878, 614, 1034}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6420, 358, 3226}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6543, 563, 3226}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6420, 563, 3226}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6543, 358, 3226}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6420, 358, 7014}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6543, 563, 7014}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6420, 563, 7014}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6543, 358, 7014}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 358, 6912}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 358, 7117}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 563, 7117}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6482, 563, 6912}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x0700FD80 - 0x0700FDF0
|
|
static const Vtx hmc_seg7_vertex_0700FD80[] = {
|
|
{{{ 3817, 614, 1137}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3817, 614, 932}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3817, 819, 932}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3878, 819, 1034}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3756, 819, 1034}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3756, 614, 1034}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 3817, 819, 1137}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x0700FDF0 - 0x0700FEF0
|
|
static const Gfx hmc_seg7_dl_0700FDF0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09007000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(hmc_seg7_vertex_0700FAB0, 15, 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),
|
|
gsSP1Triangle(11, 13, 14, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_0700FBA0, 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(hmc_seg7_vertex_0700FC90, 15, 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),
|
|
gsSP1Triangle(11, 13, 14, 0x0),
|
|
gsSPVertex(hmc_seg7_vertex_0700FD80, 7, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP1Triangle( 0, 2, 6, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700FEF0 - 0x0700FF70
|
|
const Gfx hmc_seg7_dl_0700FEF0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetEnvColor(255, 255, 255, 128),
|
|
gsDPSetCombineMode(G_CC_DECALFADEA, G_CC_DECALFADEA),
|
|
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_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(hmc_seg7_dl_0700FDF0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsDPSetEnvColor(255, 255, 255, 255),
|
|
gsSPEndDisplayList(),
|
|
};
|