mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-03 01:07:27 +00:00
141 lines
8.4 KiB
C
141 lines
8.4 KiB
C
// 0x07006A30 - 0x07006B20
|
|
static const Vtx thi_seg7_vertex_07006A30[] = {
|
|
{{{ -6614, -2047, -6628}, 0, { 4806, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -1945, -6143}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -1945, -6628}, 0, { 4806, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2866, 8151}, 0, { 20000, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2866, 6144}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2969, 6144}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2969, 8151}, 0, { 20000, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5119, -2969, 8151}, 0, { 30374, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5119, -2866, 8151}, 0, { 30374, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2866, 8151}, 0, { 124, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -8150, -2969, 8151}, 0, { 124, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -1945, -6628}, 0, { 15696, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5119, -2047, -7126}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -2047, -6628}, 0, { 15696, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -5119, -1945, -7126}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07006B20 - 0x07006C10
|
|
static const Vtx thi_seg7_vertex_07006B20[] = {
|
|
{{{ -2605, -511, 2827}, 0, { -102, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2834, -511, 2140}, 0, { 7122, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2834, -409, 2140}, 0, { 7122, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -2047, -6628}, 0, { 4806, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -2047, -6143}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -6614, -1945, -6143}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6677, -2832, 7645}, 0, { 8876, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6677, -2730, 7645}, 0, { 8876, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5882, -2730, 7168}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5882, -2832, 7168}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2742, -409, 1956}, 0, { 2012, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2834, -409, 2140}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2834, -511, 2140}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2742, -511, 1956}, 0, { 2012, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2605, -409, 2827}, 0, { -102, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07006C10 - 0x07006D00
|
|
static const Vtx thi_seg7_vertex_07006C10[] = {
|
|
{{{ 7168, -2457, 5632}, 0, { 20408, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2559, 3584}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2559, 5632}, 0, { 20408, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2874, -409, 2884}, 0, { 284, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2605, -511, 2827}, 0, { 3034, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2605, -409, 2827}, 0, { 3034, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2874, -511, 2884}, 0, { 284, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2874, -511, 2884}, 0, { 21214, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4437, -409, 1453}, 0, { 72, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4437, -511, 1453}, 0, { 72, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -2874, -409, 2884}, 0, { 21214, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4299, -511, 1178}, 0, { 82, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4437, -409, 1453}, 0, { 3148, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4299, -409, 1178}, 0, { 82, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ -4437, -511, 1453}, 0, { 3148, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07006D00 - 0x07006DF0
|
|
static const Vtx thi_seg7_vertex_07006D00[] = {
|
|
{{{ 6400, -2457, 4096}, 0, { -7694, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -2559, 4096}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6400, -2559, 4096}, 0, { -7694, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2457, 5632}, 0, { 20408, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2457, 3584}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2559, 3584}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2762, 6777}, 0, { 11784, 2}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2559, 5632}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2832, 6656}, 0, { 10546, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 7168, -2457, 5632}, 0, { -44, 2}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6656, -2559, 3584}, 0, { -5744, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6656, -2457, 3584}, 0, { -5744, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6400, -2457, 4096}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6400, -2559, 4096}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -2457, 4096}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07006DF0 - 0x07006EB0
|
|
static const Vtx thi_seg7_vertex_07006DF0[] = {
|
|
{{{ 5632, -1535, -6655}, 0, { 10188, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1433, -6655}, 0, { 10188, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1433, -5631}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1535, -5631}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1535, -5221}, 0, { -6162, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1433, -4607}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1535, -4607}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1433, -5221}, 0, { -6162, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1433, -6655}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6656, -1535, -6655}, 0, {-10250, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 6656, -1433, -6655}, 0, {-10250, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
|
{{{ 5632, -1535, -6655}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
|
|
};
|
|
|
|
// 0x07006EB0 - 0x07007008
|
|
static const Gfx thi_seg7_dl_07006EB0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, grass_0900A000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(thi_seg7_vertex_07006A30, 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(thi_seg7_vertex_07006B20, 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( 0, 2, 14, 0x0),
|
|
gsSPVertex(thi_seg7_vertex_07006C10, 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, 14, 12, 0x0),
|
|
gsSPVertex(thi_seg7_vertex_07006D00, 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(thi_seg7_vertex_07006DF0, 12, 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, 11, 9, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x07007008 - 0x07007078
|
|
const Gfx thi_seg7_dl_07007008[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
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_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(thi_seg7_dl_07006EB0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|