sm64ex-coop/levels/castle_grounds/areas/1/4/model.inc.c

132 lines
7.9 KiB
C
Raw Normal View History

2019-11-03 20:36:27 +01:00
// 0x0700A328 - 0x0700A418
static const Vtx castle_grounds_seg7_vertex_0700A328[] = {
{{{ -4817, 405, -1601}, 0, { 18906, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4817, 508, -1601}, 0, { 18872, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4692, 524, -2546}, 0, { -154, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -5856, 543, -4352}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4942, 540, -4175}, 0, { 18556, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -5856, 646, -4352}, 0, { -38, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4942, 642, -4175}, 0, { 18550, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4942, 540, -4175}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4723, 645, -3663}, 0, { 11102, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4942, 642, -4175}, 0, { -20, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4723, 543, -3663}, 0, { 11090, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4723, 543, -3663}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4692, 422, -2546}, 0, { 22390, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4692, 524, -2546}, 0, { 22168, -20}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4723, 645, -3663}, 0, { -250, -20}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x0700A418 - 0x0700A508
static const Vtx castle_grounds_seg7_vertex_0700A418[] = {
{{{ -4817, 405, -1601}, 0, { 500, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4144, 370, -544}, 0, { 25534, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4144, 473, -544}, 0, { 25476, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4692, 422, -2546}, 0, { -118, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4817, 405, -1601}, 0, { 18906, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4692, 524, -2546}, 0, { -154, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4144, 370, -544}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -3098, 444, -343}, 0, { 21296, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -3098, 547, -343}, 0, { 21438, -28}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4144, 473, -544}, 0, { 110, -28}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -3098, 444, -343}, 0, { -38, 2008}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2051, 518, -142}, 0, { 21288, 2008}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2051, 621, -142}, 0, { 21430, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -3098, 547, -343}, 0, { 102, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -4817, 508, -1601}, 0, { 442, 0}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x0700A508 - 0x0700A5F8
static const Vtx castle_grounds_seg7_vertex_0700A508[] = {
{{{ 5231, 387, -651}, 0, { -8206, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 4795, 394, -508}, 0, { 956, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 4795, 497, -508}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -1305, 767, -142}, 0, { 15460, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2051, 518, -142}, 0, { -98, 1972}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -1295, 667, -142}, 0, { 15266, 1972}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -2051, 621, -142}, 0, { 294, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -612, 903, -141}, 0, { 14240, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -1295, 667, -142}, 0, { -62, 1972}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -592, 805, -141}, 0, { 14236, 1972}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -1305, 767, -142}, 0, { 130, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 4616, 404, -1008}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 5070, 473, -2042}, 0, { 22452, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 4617, 507, -1011}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 5068, 371, -2039}, 0, { 22452, 2012}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x0700A5F8 - 0x0700A6E8
static const Vtx castle_grounds_seg7_vertex_0700A5F8[] = {
{{{ 2316, 371, -141}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 3323, 403, -530}, 0, { 21430, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 3323, 506, -530}, 0, { 21430, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 5231, 387, -651}, 0, { -8206, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 4795, 497, -508}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 5232, 489, -652}, 0, { -8206, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 2316, 473, -141}, 0, { 17278, 32}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 1459, 584, -141}, 0, { 192, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 2316, 371, -141}, 0, { 17790, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 1471, 684, -141}, 0, { -54, 32}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 1471, 684, -141}, 0, { 17318, 32}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 603, 798, -141}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 1459, 584, -141}, 0, { 17566, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 628, 894, -141}, 0, { -16, 32}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 2316, 473, -141}, 0, { 16, 0}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x0700A6E8 - 0x0700A728
static const Vtx castle_grounds_seg7_vertex_0700A6E8[] = {
{{{ -5856, 543, -4352}, 0, { 18364, 2012}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -5856, 646, -4352}, 0, { 18364, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -6620, 646, -3837}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -6620, 543, -3837}, 0, { 0, 2012}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x0700A728 - 0x0700A860
static const Gfx castle_grounds_seg7_dl_0700A728[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, castle_grounds_seg7_texture_07000000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(castle_grounds_seg7_vertex_0700A328, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 4, 6, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(11, 13, 14, 0x0),
gsSPVertex(castle_grounds_seg7_vertex_0700A418, 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(castle_grounds_seg7_vertex_0700A508, 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(castle_grounds_seg7_vertex_0700A5F8, 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(castle_grounds_seg7_vertex_0700A6E8, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPEndDisplayList(),
};
// 0x0700A860 - 0x0700A8D0
const Gfx castle_grounds_seg7_dl_0700A860[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
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, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(castle_grounds_seg7_dl_0700A728),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
gsSPEndDisplayList(),
};