sm64pc/levels/ddd/areas/1/2/model.inc.c

245 lines
14 KiB
C
Raw Normal View History

2019-11-03 19:36:27 +00:00
// 0x07004DA8 - 0x07004DB0
static const Ambient ddd_seg7_light_07004DA8 = {
{{0x3f, 0x3f, 0x3f}, 0, {0x3f, 0x3f, 0x3f}, 0}
};
// 0x07004DB0 - 0x07004DC0
static const Light ddd_seg7_light_07004DB0 = {
{{0xff, 0xff, 0xff}, 0, {0xff, 0xff, 0xff}, 0, {0x28, 0x28, 0x28}, 0}
};
// 0x07004DC0 - 0x07004EC0
static const Vtx ddd_seg7_vertex_07004DC0[] = {
{{{ 6042, 205, 512}, 0, { 0, 582}, {0x9d, 0xe6, 0xb7, 0xff}}},
{{{ 6042, 205, -511}, 0, { 2012, 582}, {0x99, 0xc4, 0x2a, 0xff}}},
{{{ 6042, -1732, -511}, 0, { 2012, 4448}, {0xc3, 0xc3, 0x5c, 0xff}}},
{{{ 5018, -2449, -511}, 0, { 2012, 1790}, {0x75, 0x30, 0x00, 0xff}}},
{{{ 5018, -511, 512}, 0, { 0, -2076}, {0x49, 0x49, 0xb7, 0xff}}},
{{{ 5018, -2449, 512}, 0, { 0, 1790}, {0x75, 0x30, 0x00, 0xff}}},
{{{ 5018, -511, -511}, 0, { 2012, -2076}, {0x49, 0x49, 0x49, 0xff}}},
{{{ 9037, -2756, -511}, 0, { 0, -9230}, {0x00, 0x71, 0x38, 0xff}}},
{{{ 5325, -2756, -511}, 0, { 0, -1820}, {0x30, 0x75, 0x00, 0xff}}},
{{{ 5325, -2756, 512}, 0, { 2012, -1820}, {0x30, 0x75, 0x00, 0xff}}},
{{{ 9037, -2756, 512}, 0, { 2012, -9230}, {0x00, 0x38, 0x8f, 0xff}}},
{{{ 5018, 1229, 512}, 0, { 0, -1462}, {0xcc, 0xa7, 0xb7, 0xff}}},
{{{ 6042, -1732, 512}, 0, { 0, 4448}, {0xda, 0xda, 0x8e, 0xff}}},
{{{ 5018, 1229, -511}, 0, { 2624, -4528}, {0xee, 0xba, 0x68, 0xff}}},
{{{ 5018, -2756, -511}, 0, { 2624, 3426}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 6042, -1732, -511}, 0, { 4668, 1382}, {0xc3, 0xc3, 0x5c, 0xff}}},
};
// 0x07004EC0 - 0x07004FA0
static const Vtx ddd_seg7_vertex_07004EC0[] = {
{{{ 5018, 1229, 512}, 0, { 0, -1462}, {0xcc, 0xa7, 0xb7, 0xff}}},
{{{ 5018, 1229, -511}, 0, { 2012, -1462}, {0xee, 0xba, 0x68, 0xff}}},
{{{ 6042, 205, -511}, 0, { 2012, 582}, {0x99, 0xc4, 0x2a, 0xff}}},
{{{ 9037, -1732, 512}, 0, { 2012, -9230}, {0x00, 0x8f, 0xc8, 0xff}}},
{{{ 6042, -1732, 512}, 0, { 2012, -3252}, {0xda, 0xda, 0x8e, 0xff}}},
{{{ 6042, -1732, -511}, 0, { 0, -3252}, {0xc3, 0xc3, 0x5c, 0xff}}},
{{{ 9037, -1732, -511}, 0, { 0, -9230}, {0x00, 0xc8, 0x71, 0xff}}},
{{{ 6042, 205, 512}, 0, { 4668, -2484}, {0x9d, 0xe6, 0xb7, 0xff}}},
{{{ 5018, -2756, 512}, 0, { 2624, 3426}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 5018, 1229, 512}, 0, { 2624, -4528}, {0xcc, 0xa7, 0xb7, 0xff}}},
{{{ 6042, -1732, 512}, 0, { 4668, 1382}, {0xda, 0xda, 0x8e, 0xff}}},
{{{ 5018, 1229, -511}, 0, { 2624, -4528}, {0xee, 0xba, 0x68, 0xff}}},
{{{ 6042, -1732, -511}, 0, { 4668, 1382}, {0xc3, 0xc3, 0x5c, 0xff}}},
{{{ 6042, 205, -511}, 0, { 4668, -2484}, {0x99, 0xc4, 0x2a, 0xff}}},
};
// 0x07004FA0 - 0x07005090
static const Vtx ddd_seg7_vertex_07004FA0[] = {
{{{ 2150, -4607, 512}, 0, { -3096, 7120}, {0x33, 0x33, 0x99, 0xff}}},
{{{ 3174, 1229, 512}, 0, { -1052, -4528}, {0x12, 0xba, 0x98, 0xff}}},
{{{ 3174, -4607, 512}, 0, { -1052, 7120}, {0xcd, 0x67, 0xcd, 0xff}}},
{{{ 9037, -2756, 512}, 0, { 10648, 3426}, {0x00, 0x38, 0x8f, 0xff}}},
{{{ 6042, -1732, 512}, 0, { 4668, 1382}, {0xda, 0xda, 0x8e, 0xff}}},
{{{ 9037, -1732, 512}, 0, { 10648, 1382}, {0x00, 0x8f, 0xc8, 0xff}}},
{{{ 5018, -2756, 512}, 0, { 2624, 3426}, {0x00, 0x00, 0x81, 0xff}}},
{{{ 9037, -1732, -511}, 0, { 10648, 1382}, {0x00, 0xc8, 0x71, 0xff}}},
{{{ 5018, -2756, -511}, 0, { 2624, 3426}, {0x00, 0x00, 0x7f, 0xff}}},
{{{ 9037, -2756, -511}, 0, { 10648, 3426}, {0x00, 0x71, 0x38, 0xff}}},
{{{ 6042, -1732, -511}, 0, { 4668, 1382}, {0xc3, 0xc3, 0x5c, 0xff}}},
{{{ 5018, -511, 512}, 0, { 2624, -1054}, {0x49, 0x49, 0xb7, 0xff}}},
{{{ 3174, -511, 512}, 0, { -1052, -1054}, {0x99, 0x33, 0xcd, 0xff}}},
{{{ 5018, 1229, 512}, 0, { 2624, -4528}, {0xcc, 0xa7, 0xb7, 0xff}}},
{{{ 2150, 205, 512}, 0, { -3096, -2484}, {0x71, 0xd2, 0xdf, 0xff}}},
};
// 0x07005090 - 0x07005190
static const Vtx ddd_seg7_vertex_07005090[] = {
{{{ 3174, -511, -511}, 0, { -1052, -1054}, {0xd6, 0x54, 0x54, 0xff}}},
{{{ 5018, -511, -511}, 0, { 2624, -1054}, {0x49, 0x49, 0x49, 0xff}}},
{{{ 5018, 1229, -511}, 0, { 2624, -4528}, {0xee, 0xba, 0x68, 0xff}}},
{{{ 3174, 1229, -511}, 0, { -1052, -4528}, {0x34, 0xa7, 0x49, 0xff}}},
{{{ 3174, -4607, -511}, 0, { -1052, 7120}, {0xac, 0x2a, 0x54, 0xff}}},
{{{ 2150, 205, -511}, 0, { -3096, -2484}, {0x4f, 0xe0, 0x5d, 0xff}}},
{{{ 2150, -4607, -511}, 0, { -3096, 7120}, {0x33, 0x67, 0x33, 0xff}}},
{{{ 2150, -4607, -204}, 0, { 9576, -440}, {0x2a, 0x73, 0x1e, 0xff}}},
{{{ 2150, -4607, -511}, 0, { 9576, -1054}, {0x33, 0x67, 0x33, 0xff}}},
{{{ 2150, -4300, -511}, 0, { 8960, -1054}, {0x2a, 0x3c, 0x67, 0xff}}},
{{{ 2150, -3583, -511}, 0, { 7532, -1054}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 2150, 205, -511}, 0, { 0, -1054}, {0x4f, 0xe0, 0x5d, 0xff}}},
{{{ 2150, 205, 512}, 0, { 0, 990}, {0x71, 0xd2, 0xdf, 0xff}}},
{{{ 2150, -4300, 512}, 0, { 8960, 990}, {0x2a, 0x1e, 0x8d, 0xff}}},
{{{ 2150, -4607, 512}, 0, { 9576, 990}, {0x33, 0x33, 0x99, 0xff}}},
{{{ 2150, -4607, 205}, 0, { 9576, 376}, {0x2a, 0x67, 0xc4, 0xff}}},
};
// 0x07005190 - 0x07005270
static const Vtx ddd_seg7_vertex_07005190[] = {
{{{ 2150, -3890, -511}, 0, { 8144, -1054}, {0x2a, 0xe2, 0x73, 0xff}}},
{{{ 2150, -3583, -511}, 0, { 7532, -1054}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 2150, -3583, -204}, 0, { 7532, -440}, {0x2a, 0x99, 0x3c, 0xff}}},
{{{ 2150, -3583, 205}, 0, { 7532, 376}, {0x2a, 0x8d, 0xe2, 0xff}}},
{{{ 2150, -3583, 512}, 0, { 7532, 990}, {0x7f, 0x00, 0x00, 0xff}}},
{{{ 2150, -3890, 512}, 0, { 8144, 990}, {0x2a, 0xc4, 0x99, 0xff}}},
{{{ 2150, 205, 512}, 0, { 0, 990}, {0x71, 0xd2, 0xdf, 0xff}}},
{{{ 5018, -511, 512}, 0, { 2012, -1208}, {0x49, 0x49, 0xb7, 0xff}}},
{{{ 5018, -511, -511}, 0, { 0, -1208}, {0x49, 0x49, 0x49, 0xff}}},
{{{ 3174, -511, -511}, 0, { 0, 2470}, {0xd6, 0x54, 0x54, 0xff}}},
{{{ 3174, -4607, 512}, 0, { 2012, 2470}, {0xcd, 0x67, 0xcd, 0xff}}},
{{{ 3174, -4607, -511}, 0, { 0, 2470}, {0xac, 0x2a, 0x54, 0xff}}},
{{{ 2150, -4607, -511}, 0, { 0, 4514}, {0x33, 0x67, 0x33, 0xff}}},
{{{ 2150, -4607, 512}, 0, { 2012, 4514}, {0x33, 0x33, 0x99, 0xff}}},
};
// 0x07005270 - 0x07005350
static const Vtx ddd_seg7_vertex_07005270[] = {
{{{ 2150, 205, 512}, 0, { 0, 582}, {0x71, 0xd2, 0xdf, 0xff}}},
{{{ 3174, 1229, -511}, 0, { 2012, -1462}, {0x34, 0xa7, 0x49, 0xff}}},
{{{ 3174, 1229, 512}, 0, { 0, -1462}, {0x12, 0xba, 0x98, 0xff}}},
{{{ 2150, 205, -511}, 0, { 2012, 582}, {0x4f, 0xe0, 0x5d, 0xff}}},
{{{ 3174, 1229, 512}, 0, { 2012, 2470}, {0x12, 0xba, 0x98, 0xff}}},
{{{ 5018, 1229, -511}, 0, { 0, -1208}, {0xee, 0xba, 0x68, 0xff}}},
{{{ 5018, 1229, 512}, 0, { 2012, -1208}, {0xcc, 0xa7, 0xb7, 0xff}}},
{{{ 3174, 1229, -511}, 0, { 0, 2470}, {0x34, 0xa7, 0x49, 0xff}}},
{{{ 5018, -2449, -511}, 0, { 2012, -252}, {0x75, 0x30, 0x00, 0xff}}},
{{{ 5018, -2449, 512}, 0, { 0, -252}, {0x75, 0x30, 0x00, 0xff}}},
{{{ 5325, -2756, 512}, 0, { 0, 362}, {0x30, 0x75, 0x00, 0xff}}},
{{{ 5018, -511, 512}, 0, { 2012, -1208}, {0x49, 0x49, 0xb7, 0xff}}},
{{{ 3174, -511, -511}, 0, { 0, 2470}, {0xd6, 0x54, 0x54, 0xff}}},
{{{ 3174, -511, 512}, 0, { 2012, 2470}, {0x99, 0x33, 0xcd, 0xff}}},
};
// 0x07005350 - 0x070053C0
static const Vtx ddd_seg7_vertex_07005350[] = {
{{{ 3174, -511, 512}, 0, { 0, -4120}, {0x99, 0x33, 0xcd, 0xff}}},
{{{ 3174, -4607, -511}, 0, { 2012, 4054}, {0xac, 0x2a, 0x54, 0xff}}},
{{{ 3174, -4607, 512}, 0, { 0, 4054}, {0xcd, 0x67, 0xcd, 0xff}}},
{{{ 3174, -511, -511}, 0, { 2012, -4120}, {0xd6, 0x54, 0x54, 0xff}}},
{{{ 5018, -2449, -511}, 0, { 2012, -252}, {0x75, 0x30, 0x00, 0xff}}},
{{{ 5325, -2756, 512}, 0, { 0, 362}, {0x30, 0x75, 0x00, 0xff}}},
{{{ 5325, -2756, -511}, 0, { 2012, 362}, {0x30, 0x75, 0x00, 0xff}}},
};
// 0x070053C0 - 0x070054B0
static const Vtx ddd_seg7_vertex_070053C0[] = {
{{{ -921, -3583, 205}, 0, { 0, 990}, {0x00, 0x93, 0xc0, 0xff}}},
{{{ 2150, -3890, 512}, 0, { 2012, 462}, {0x2a, 0xc4, 0x99, 0xff}}},
{{{ -921, -3890, 512}, 0, { 0, 462}, {0x00, 0xe0, 0x86, 0xff}}},
{{{ -921, -4607, -204}, 0, { 0, 990}, {0x00, 0x6d, 0x40, 0xff}}},
{{{ 2150, -4607, -204}, 0, { 2012, 990}, {0x2a, 0x73, 0x1e, 0xff}}},
{{{ 2150, -4300, -511}, 0, { 2012, 462}, {0x2a, 0x3c, 0x67, 0xff}}},
{{{ -921, -4300, -511}, 0, { 0, 462}, {0x00, 0x20, 0x7a, 0xff}}},
{{{ 2150, -3890, -511}, 0, { 2012, 0}, {0x2a, 0xe2, 0x73, 0xff}}},
{{{ -921, -3890, -511}, 0, { 0, 0}, {0x00, 0xc0, 0x6d, 0xff}}},
{{{ -921, -4607, 205}, 0, { 0, 462}, {0x00, 0x7a, 0xe0, 0xff}}},
{{{ 2150, -4607, -204}, 0, { 2012, 0}, {0x2a, 0x73, 0x1e, 0xff}}},
{{{ -921, -4607, -204}, 0, { 0, 0}, {0x00, 0x6d, 0x40, 0xff}}},
{{{ 2150, -4607, 205}, 0, { 2012, 462}, {0x2a, 0x67, 0xc4, 0xff}}},
{{{ -921, -4300, 512}, 0, { 0, 990}, {0x00, 0x40, 0x93, 0xff}}},
{{{ 2150, -4300, 512}, 0, { 2012, 990}, {0x2a, 0x1e, 0x8d, 0xff}}},
};
// 0x070054B0 - 0x07005570
static const Vtx ddd_seg7_vertex_070054B0[] = {
{{{ -921, -3890, -511}, 0, { 0, 990}, {0x00, 0xc0, 0x6d, 0xff}}},
{{{ 2150, -3890, -511}, 0, { 2012, 990}, {0x2a, 0xe2, 0x73, 0xff}}},
{{{ 2150, -3583, -204}, 0, { 2012, 462}, {0x2a, 0x99, 0x3c, 0xff}}},
{{{ -921, -3890, 512}, 0, { 0, 462}, {0x00, 0xe0, 0x86, 0xff}}},
{{{ 2150, -3890, 512}, 0, { 2012, 462}, {0x2a, 0xc4, 0x99, 0xff}}},
{{{ 2150, -4300, 512}, 0, { 2012, 0}, {0x2a, 0x1e, 0x8d, 0xff}}},
{{{ -921, -3583, 205}, 0, { 0, 990}, {0x00, 0x93, 0xc0, 0xff}}},
{{{ 2150, -3583, 205}, 0, { 2012, 990}, {0x2a, 0x8d, 0xe2, 0xff}}},
{{{ -921, -4300, 512}, 0, { 0, 0}, {0x00, 0x40, 0x93, 0xff}}},
{{{ -921, -3583, -204}, 0, { 0, 462}, {0x00, 0x86, 0x20, 0xff}}},
{{{ 2150, -3583, 205}, 0, { 2012, 0}, {0x2a, 0x8d, 0xe2, 0xff}}},
{{{ -921, -3583, 205}, 0, { 0, 0}, {0x00, 0x93, 0xc0, 0xff}}},
};
// 0x07005570 - 0x07005738
static const Gfx ddd_seg7_dl_07005570[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09007800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPLight(&ddd_seg7_light_07004DB0, 1),
gsSPLight(&ddd_seg7_light_07004DA8, 2),
gsSPVertex(ddd_seg7_vertex_07004DC0, 16, 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, 1, 0, 0x0),
gsSP2Triangles( 0, 2, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(ddd_seg7_vertex_07004EC0, 14, 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),
gsSPVertex(ddd_seg7_vertex_07004FA0, 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, 1, 11, 12, 0x0),
gsSP2Triangles( 1, 13, 11, 0x0, 0, 14, 1, 0x0),
gsSPVertex(ddd_seg7_vertex_07005090, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 3, 5, 0x0),
gsSP2Triangles( 7, 8, 9, 0x0, 10, 11, 12, 0x0),
gsSP1Triangle(13, 14, 15, 0x0),
gsSPVertex(ddd_seg7_vertex_07005190, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 1, 6, 4, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
gsSPVertex(ddd_seg7_vertex_07005270, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSPVertex(ddd_seg7_vertex_07005350, 7, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP1Triangle( 4, 5, 6, 0x0),
gsSPEndDisplayList(),
};
// 0x07005738 - 0x070057E8
static const Gfx ddd_seg7_dl_07005738[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPVertex(ddd_seg7_vertex_070053C0, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 5, 6, 0x0, 6, 5, 7, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP2Triangles( 9, 12, 10, 0x0, 13, 12, 9, 0x0),
gsSP1Triangle(13, 14, 12, 0x0),
gsSPVertex(ddd_seg7_vertex_070054B0, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 4, 0x0, 3, 5, 8, 0x0),
gsSP2Triangles( 9, 10, 11, 0x0, 9, 2, 10, 0x0),
gsSP1Triangle( 0, 2, 9, 0x0),
gsSPEndDisplayList(),
};
// 0x070057E8 - 0x07005850
const Gfx ddd_seg7_dl_070057E8[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
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, 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(ddd_seg7_dl_07005570),
gsSPDisplayList(ddd_seg7_dl_07005738),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};