sm64pc/actors/warp_pipe/model.inc.c
2019-12-01 21:52:53 -05:00

242 lines
13 KiB
C

// Warp Pipe
// 0x030079E8
static const Lights1 warp_pipe_seg3_lights_030079E8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x03007A00
static const Vtx warp_pipe_seg3_vertex_03007A00[] = {
{{{ -101, 0, 0}, 0, { 990, 2012}, {0x7d, 0x00, 0xef, 0xff}}},
{{{ -71, 205, 72}, 0, { 0, 0}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ -71, 0, 72}, 0, { 0, 2012}, {0x4d, 0x00, 0x9c, 0xff}}},
{{{ 72, 0, 72}, 0, { 990, 2012}, {0x9b, 0x00, 0xb4, 0xff}}},
{{{ 72, 205, 72}, 0, { 990, 0}, {0xb4, 0x00, 0x9b, 0xff}}},
{{{ 102, 205, 0}, 0, { 0, 0}, {0x83, 0x00, 0xef, 0xff}}},
{{{ 102, 0, 0}, 0, { 0, 2012}, {0x83, 0x00, 0x11, 0xff}}},
{{{ 0, 0, 102}, 0, { 990, 2012}, {0xef, 0x00, 0x83, 0xff}}},
{{{ 0, 205, 102}, 0, { 990, 0}, {0x11, 0x00, 0x83, 0xff}}},
{{{ 72, 205, 72}, 0, { 0, 0}, {0xb4, 0x00, 0x9b, 0xff}}},
{{{ 72, 0, 72}, 0, { 0, 2012}, {0x9b, 0x00, 0xb4, 0xff}}},
{{{ -71, 0, 72}, 0, { 990, 2012}, {0x4d, 0x00, 0x9c, 0xff}}},
{{{ -71, 205, 72}, 0, { 990, 0}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ 0, 205, 102}, 0, { 0, 0}, {0x11, 0x00, 0x83, 0xff}}},
{{{ 0, 0, 102}, 0, { 0, 2012}, {0xef, 0x00, 0x83, 0xff}}},
};
// 0x03007AF0
static const Vtx warp_pipe_seg3_vertex_03007AF0[] = {
{{{ 72, 0, -71}, 0, { 990, 2012}, {0xb4, 0x00, 0x65, 0xff}}},
{{{ 0, 205, -101}, 0, { 0, 0}, {0xef, 0x00, 0x7d, 0xff}}},
{{{ 0, 0, -101}, 0, { 0, 2012}, {0x11, 0x00, 0x7d, 0xff}}},
{{{ -101, 0, 0}, 0, { 990, 2012}, {0x7d, 0x00, 0xef, 0xff}}},
{{{ -101, 205, 0}, 0, { 990, 0}, {0x7d, 0x00, 0x11, 0xff}}},
{{{ -71, 205, 72}, 0, { 0, 0}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ -71, 0, -71}, 0, { 990, 2012}, {0x65, 0x00, 0x4c, 0xff}}},
{{{ -101, 205, 0}, 0, { 0, 0}, {0x7d, 0x00, 0x11, 0xff}}},
{{{ -101, 0, 0}, 0, { 0, 2012}, {0x7d, 0x00, 0xef, 0xff}}},
{{{ -71, 205, -71}, 0, { 990, 0}, {0x4c, 0x00, 0x65, 0xff}}},
{{{ 0, 0, -101}, 0, { 990, 2012}, {0x11, 0x00, 0x7d, 0xff}}},
{{{ -71, 205, -71}, 0, { 0, 0}, {0x4c, 0x00, 0x65, 0xff}}},
{{{ -71, 0, -71}, 0, { 0, 2012}, {0x65, 0x00, 0x4c, 0xff}}},
{{{ 0, 205, -101}, 0, { 990, 0}, {0xef, 0x00, 0x7d, 0xff}}},
{{{ 72, 205, -71}, 0, { 990, 0}, {0x9c, 0x00, 0x4d, 0xff}}},
};
// 0x03007BE0
static const Vtx warp_pipe_seg3_vertex_03007BE0[] = {
{{{ 0, 0, 154}, 0, { 990, 2012}, {0xef, 0x00, 0x7d, 0xff}}},
{{{ 0, 205, 154}, 0, { 990, 0}, {0x11, 0x00, 0x7d, 0xff}}},
{{{ -108, 205, 109}, 0, { 0, 0}, {0xb4, 0x00, 0x65, 0xff}}},
{{{ 102, 0, 0}, 0, { 990, 2012}, {0x83, 0x00, 0x11, 0xff}}},
{{{ 102, 205, 0}, 0, { 990, 0}, {0x83, 0x00, 0xef, 0xff}}},
{{{ 72, 205, -71}, 0, { 0, 0}, {0x9c, 0x00, 0x4d, 0xff}}},
{{{ 72, 0, -71}, 0, { 0, 2012}, {0xb4, 0x00, 0x65, 0xff}}},
{{{ 154, 0, 0}, 0, { 990, 2012}, {0x7d, 0x00, 0x11, 0xff}}},
{{{ 154, 205, 0}, 0, { 990, 0}, {0x7d, 0x00, 0xef, 0xff}}},
{{{ 109, 205, 109}, 0, { 0, 0}, {0x65, 0x00, 0x4c, 0xff}}},
{{{ 109, 0, 109}, 0, { 0, 2012}, {0x4c, 0x00, 0x65, 0xff}}},
{{{ 109, 0, 109}, 0, { 990, 2012}, {0x4c, 0x00, 0x65, 0xff}}},
{{{ 109, 205, 109}, 0, { 990, 0}, {0x65, 0x00, 0x4c, 0xff}}},
{{{ 0, 205, 154}, 0, { 0, 0}, {0x11, 0x00, 0x7d, 0xff}}},
{{{ 0, 0, 154}, 0, { 0, 2012}, {0xef, 0x00, 0x7d, 0xff}}},
};
// 0x03007CD0
static const Vtx warp_pipe_seg3_vertex_03007CD0[] = {
{{{ -108, 0, -108}, 0, { 990, 2012}, {0xb4, 0x00, 0x9b, 0xff}}},
{{{ 0, 205, -153}, 0, { 0, 0}, {0xef, 0x00, 0x83, 0xff}}},
{{{ 0, 0, -153}, 0, { 0, 2012}, {0x11, 0x00, 0x83, 0xff}}},
{{{ 0, 0, 154}, 0, { 990, 2012}, {0xef, 0x00, 0x7d, 0xff}}},
{{{ -108, 205, 109}, 0, { 0, 0}, {0xb4, 0x00, 0x65, 0xff}}},
{{{ -108, 0, 109}, 0, { 0, 2012}, {0x9b, 0x00, 0x4c, 0xff}}},
{{{ -108, 0, 109}, 0, { 990, 2012}, {0x9b, 0x00, 0x4c, 0xff}}},
{{{ -108, 205, 109}, 0, { 990, 0}, {0xb4, 0x00, 0x65, 0xff}}},
{{{ -153, 205, 0}, 0, { 0, 0}, {0x83, 0x00, 0x11, 0xff}}},
{{{ -153, 0, 0}, 0, { 0, 2012}, {0x83, 0x00, 0xef, 0xff}}},
{{{ -153, 0, 0}, 0, { 990, 2012}, {0x83, 0x00, 0xef, 0xff}}},
{{{ -108, 205, -108}, 0, { 0, 0}, {0x9b, 0x00, 0xb4, 0xff}}},
{{{ -108, 0, -108}, 0, { 0, 2012}, {0xb4, 0x00, 0x9b, 0xff}}},
{{{ -153, 205, 0}, 0, { 990, 0}, {0x83, 0x00, 0x11, 0xff}}},
{{{ -108, 205, -108}, 0, { 990, 0}, {0x9b, 0x00, 0xb4, 0xff}}},
};
// 0x03007DC0
static const Vtx warp_pipe_seg3_vertex_03007DC0[] = {
{{{ 0, 0, -153}, 0, { 990, 2012}, {0x11, 0x00, 0x83, 0xff}}},
{{{ 0, 205, -153}, 0, { 990, 0}, {0xef, 0x00, 0x83, 0xff}}},
{{{ 109, 205, -108}, 0, { 0, 0}, {0x4c, 0x00, 0x9b, 0xff}}},
{{{ 109, 0, -108}, 0, { 0, 2012}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ 109, 0, -108}, 0, { 990, 2012}, {0x65, 0x00, 0xb4, 0xff}}},
{{{ 109, 205, -108}, 0, { 990, 0}, {0x4c, 0x00, 0x9b, 0xff}}},
{{{ 154, 205, 0}, 0, { 0, 0}, {0x7d, 0x00, 0xef, 0xff}}},
{{{ 154, 0, 0}, 0, { 0, 2012}, {0x7d, 0x00, 0x11, 0xff}}},
};
// 0x03007E40
ALIGNED8 static const u8 warp_pipe_seg3_texture_03007E40[] = {
#include "actors/warp_pipe/warp_pipe_side.rgba16.inc.c"
};
// 0x03008E40 - 0x03008F98
const Gfx warp_pipe_seg3_dl_03008E40[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, warp_pipe_seg3_texture_03007E40),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&warp_pipe_seg3_lights_030079E8.l, 1),
gsSPLight(&warp_pipe_seg3_lights_030079E8.a, 2),
gsSPVertex(warp_pipe_seg3_vertex_03007A00, 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, 13, 14, 0x0),
gsSPVertex(warp_pipe_seg3_vertex_03007AF0, 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, 14, 1, 0x0),
gsSPVertex(warp_pipe_seg3_vertex_03007BE0, 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, 13, 14, 0x0),
gsSPVertex(warp_pipe_seg3_vertex_03007CD0, 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, 13, 11, 0x0),
gsSP1Triangle( 0, 14, 1, 0x0),
gsSPVertex(warp_pipe_seg3_vertex_03007DC0, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSPEndDisplayList(),
};
// 0x03008F98 - 0x03008FF8
const Gfx warp_pipe_seg3_dl_03008F98[] = {
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, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 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(warp_pipe_seg3_dl_03008E40),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};
// 0x03008FF8
static const Lights1 warp_pipe_seg3_lights_03008FF8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x03009010
static const Lights1 warp_pipe_seg3_lights_03009010 = gdSPDefLights1(
0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x28, 0x28, 0x28
);
// 0x03009028
static const Vtx warp_pipe_seg3_vertex_03009028[] = {
{{{ 109, 205, -108}, 0, { 400, -174}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 0, 205, -153}, 0, { 14, 52}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 0, 205, -101}, 0, { 184, 186}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -108, 205, 109}, 0, { 644, 1082}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 0, 205, 102}, 0, { 862, 724}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -71, 205, 72}, 0, { 604, 876}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 0, 205, 154}, 0, { 1032, 860}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -153, 205, 0}, 0, { 186, 942}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 109, 205, 109}, 0, { 1120, 398}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 72, 205, 72}, 0, { 920, 416}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 205, 0}, 0, { 298, 780}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -108, 205, -108}, 0, { -72, 514}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -71, 205, -71}, 0, { 124, 494}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 154, 205, 0}, 0, { 858, -30}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 205, 0}, 0, { 746, 132}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 72, 205, -71}, 0, { 442, 36}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x03009128
static const Vtx warp_pipe_seg3_vertex_03009128[] = {
{{{ -101, 10, 102}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 10, -101}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -101, 10, -101}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 102, 10, 102}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
};
// 0x03009168
ALIGNED8 static const u8 warp_pipe_seg3_texture_03009168[] = {
#include "actors/warp_pipe/warp_pipe_top.rgba16.inc.c"
};
// 0x03009968 - 0x03009A20
const Gfx warp_pipe_seg3_dl_03009968[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, warp_pipe_seg3_texture_03009168),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&warp_pipe_seg3_lights_03008FF8.l, 1),
gsSPLight(&warp_pipe_seg3_lights_03008FF8.a, 2),
gsSPVertex(warp_pipe_seg3_vertex_03009028, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 3, 6, 4, 0x0, 7, 3, 5, 0x0),
gsSP2Triangles( 8, 4, 6, 0x0, 8, 9, 4, 0x0),
gsSP2Triangles( 7, 5, 10, 0x0, 11, 7, 10, 0x0),
gsSP2Triangles(11, 10, 12, 0x0, 1, 11, 12, 0x0),
gsSP2Triangles( 1, 12, 2, 0x0, 13, 14, 9, 0x0),
gsSP2Triangles( 0, 2, 15, 0x0, 13, 0, 15, 0x0),
gsSP2Triangles(13, 15, 14, 0x0, 13, 9, 8, 0x0),
gsSPEndDisplayList(),
};
// 0x03009A20 - 0x03009A50
const Gfx warp_pipe_seg3_dl_03009A20[] = {
gsSPLight(&warp_pipe_seg3_lights_03009010.l, 1),
gsSPLight(&warp_pipe_seg3_lights_03009010.a, 2),
gsSPVertex(warp_pipe_seg3_vertex_03009128, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x03009A50 - 0x03009AC8
const Gfx warp_pipe_seg3_dl_03009A50[] = {
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(warp_pipe_seg3_dl_03009968),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(warp_pipe_seg3_dl_03009A20),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};