sm64pc/levels/bbh/areas/1/33/model.inc.c

211 lines
12 KiB
C
Raw Normal View History

2020-05-05 12:15:53 +00:00
// 0x0701A0F0 - 0x0701A108
static const Lights1 bbh_seg7_lights_0701A0F0 = gdSPDefLights1(
0x20, 0x20, 0x20,
0x50, 0x50, 0x50, 0x28, 0x28, 0x28
);
// 0x0701A108 - 0x0701A120
static const Lights1 bbh_seg7_lights_0701A108 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0701A120 - 0x0701A160
static const Vtx bbh_seg7_vertex_0701A120[] = {
{{{ -306, -2457, 2150}, 0, { 24496, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 307, -2457, 4608}, 0, { 0, 6098}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 307, -2457, 2150}, 0, { 24496, 6098}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -306, -2457, 4608}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0701A160 - 0x0701A260
static const Vtx bbh_seg7_vertex_0701A160[] = {
{{{ -76, -2457, 2099}, 0, { 990, 478}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -76, -2457, 2150}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 77, -2457, 2150}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -76, -2457, 4608}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -76, -2457, 4659}, 0, { 990, 478}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 77, -2457, 4659}, 0, { 0, 480}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 77, -2457, 4608}, 0, { 0, 2012}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 77, -2201, 4608}, 0, { 0, 990}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 77, -2201, 4659}, 0, { 0, 480}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -76, -2201, 4659}, 0, { 990, 478}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -76, -2201, 4608}, 0, { 990, 990}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 77, -2201, 2099}, 0, { 0, 478}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 77, -2201, 2150}, 0, { 0, 0}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -76, -2201, 2150}, 0, { 990, 0}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -76, -2201, 2099}, 0, { 990, 478}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 77, -2457, 2099}, 0, { 0, 478}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x0701A260 - 0x0701A360
static const Vtx bbh_seg7_vertex_0701A260[] = {
{{{ -76, -2201, 2099}, 0, { 480, 0}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2201, 2150}, 0, { 990, 0}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2457, 2150}, 0, { 990, 2012}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2201, 4608}, 0, { 0, 0}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2457, 4659}, 0, { 478, 2012}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2457, 4608}, 0, { 0, 2012}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2201, 4659}, 0, { 478, 0}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 77, -2457, 4608}, 0, { 0, 2012}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2201, 4659}, 0, { 478, 0}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2201, 4608}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2457, 4659}, 0, { 478, 2012}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2457, 2099}, 0, { 480, 2012}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2457, 2150}, 0, { 990, 2012}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2201, 2150}, 0, { 990, 0}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 77, -2201, 2099}, 0, { 480, 0}, {0x81, 0x00, 0x00, 0xff}}},
{{{ -76, -2457, 2099}, 0, { 480, 2012}, {0x7f, 0x00, 0x00, 0xff}}},
};
// 0x0701A360 - 0x0701A450
static const Vtx bbh_seg7_vertex_0701A360[] = {
{{{ 307, -2457, 2150}, 0, { 0, 990}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 307, -2047, 4608}, 0, { 12232, -1054}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 307, -2047, 2150}, 0, { 0, -1054}, {0x81, 0x00, 0x00, 0xff}}},
{{{ -101, -1842, 2150}, 0, { 12232, -456}, {0x59, 0xa7, 0x00, 0xff}}},
{{{ -306, -2047, 4608}, 0, { 0, 990}, {0x59, 0xa7, 0x00, 0xff}}},
{{{ -306, -2047, 2150}, 0, { 12232, 990}, {0x59, 0xa7, 0x00, 0xff}}},
{{{ -101, -1842, 4608}, 0, { 0, -456}, {0x59, 0xa7, 0x00, 0xff}}},
{{{ 102, -1842, 2150}, 0, { 12232, 0}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 102, -1842, 4608}, 0, { 0, 0}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -101, -1842, 4608}, 0, { 0, 990}, {0x00, 0x81, 0x00, 0xff}}},
{{{ -101, -1842, 2150}, 0, { 12232, 990}, {0x00, 0x81, 0x00, 0xff}}},
{{{ 307, -2047, 2150}, 0, { 0, 990}, {0xa7, 0xa7, 0x00, 0xff}}},
{{{ 307, -2047, 4608}, 0, { 12232, 990}, {0xa7, 0xa7, 0x00, 0xff}}},
{{{ 102, -1842, 4608}, 0, { 12232, -456}, {0xa7, 0xa7, 0x00, 0xff}}},
{{{ 102, -1842, 2150}, 0, { 0, -456}, {0xa7, 0xa7, 0x00, 0xff}}},
};
// 0x0701A450 - 0x0701A550
static const Vtx bbh_seg7_vertex_0701A450[] = {
{{{ -76, -2201, 4608}, 0, { 1884, -288}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -306, -2047, 4608}, 0, { 3032, -1054}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 102, -1842, 4608}, 0, { 988, -2076}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 307, -2457, 2150}, 0, { 0, 990}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 307, -2457, 4608}, 0, { 12232, 990}, {0x81, 0x00, 0x00, 0xff}}},
{{{ 307, -2047, 4608}, 0, { 12232, -1054}, {0x81, 0x00, 0x00, 0xff}}},
{{{ -306, -2047, 2150}, 0, { 7632, -1054}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -306, -2047, 4608}, 0, { -4628, -1054}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -306, -2457, 4608}, 0, { -4628, 990}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -306, -2457, 2150}, 0, { 7632, 990}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ -76, -2457, 4608}, 0, { 1884, 990}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -306, -2457, 4608}, 0, { 3032, 990}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 77, -2201, 4608}, 0, { 1116, -288}, {0x00, 0x00, 0x81, 0xff}}},
{{{ -101, -1842, 4608}, 0, { 2012, -2076}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 307, -2047, 4608}, 0, { 0, -1054}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 307, -2457, 4608}, 0, { 0, 990}, {0x00, 0x00, 0x81, 0xff}}},
};
// 0x0701A550 - 0x0701A620
static const Vtx bbh_seg7_vertex_0701A550[] = {
{{{ 307, -2457, 4608}, 0, { 0, 990}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 77, -2457, 4608}, 0, { 1116, 990}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 77, -2201, 4608}, 0, { 1116, -288}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 307, -2047, 2150}, 0, { 3032, -1054}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 77, -2201, 2150}, 0, { 1884, -288}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 307, -2457, 2150}, 0, { 3032, 990}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 102, -1842, 2150}, 0, { 2012, -2076}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -76, -2201, 2150}, 0, { 1116, -288}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 77, -2457, 2150}, 0, { 1884, 990}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -306, -2457, 2150}, 0, { 0, 990}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -76, -2457, 2150}, 0, { 1116, 990}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -306, -2047, 2150}, 0, { 0, -1054}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ -101, -1842, 2150}, 0, { 988, -2076}, {0x00, 0x00, 0x7f, 0xff}}},
};
// 0x0701A620 - 0x0701A668
static const Gfx bbh_seg7_dl_0701A620[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_0900A000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701A0F0.l, 1),
gsSPLight(&bbh_seg7_lights_0701A0F0.a, 2),
gsSPVertex(bbh_seg7_vertex_0701A120, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0701A668 - 0x0701A6E0
static const Gfx bbh_seg7_dl_0701A668[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&bbh_seg7_lights_0701A108.l, 1),
gsSPLight(&bbh_seg7_lights_0701A108.a, 2),
gsSPVertex(bbh_seg7_vertex_0701A160, 16, 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),
gsSP2Triangles(11, 13, 14, 0x0, 0, 2, 15, 0x0),
gsSPEndDisplayList(),
};
// 0x0701A6E0 - 0x0701A748
static const Gfx bbh_seg7_dl_0701A6E0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09003800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bbh_seg7_vertex_0701A260, 16, 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),
gsSP2Triangles(11, 13, 14, 0x0, 0, 2, 15, 0x0),
gsSPEndDisplayList(),
};
// 0x0701A748 - 0x0701A850
static const Gfx bbh_seg7_dl_0701A748[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09007000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bbh_seg7_vertex_0701A360, 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(bbh_seg7_vertex_0701A450, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
gsSP2Triangles( 0, 10, 11, 0x0, 0, 11, 1, 0x0),
gsSP2Triangles(12, 0, 2, 0x0, 1, 13, 2, 0x0),
gsSP2Triangles(12, 2, 14, 0x0, 15, 12, 14, 0x0),
gsSPVertex(bbh_seg7_vertex_0701A550, 13, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 6, 7, 4, 0x0),
gsSP2Triangles( 4, 8, 5, 0x0, 9, 10, 7, 0x0),
gsSP2Triangles(11, 9, 7, 0x0, 6, 11, 7, 0x0),
gsSP1Triangle( 6, 12, 11, 0x0),
gsSPEndDisplayList(),
};
// 0x0701A850 - 0x0701A920
const Gfx bbh_seg7_dl_0701A850[] = {
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(bbh_seg7_dl_0701A620),
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(bbh_seg7_dl_0701A668),
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(bbh_seg7_dl_0701A6E0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(bbh_seg7_dl_0701A748),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};