sm64pc/levels/ttm/areas/1/5/1.inc.c

106 lines
5.9 KiB
C
Raw Normal View History

2019-12-02 02:52:53 +00:00
// 0x0700B130 - 0x0700B148
static const Lights1 ttm_seg7_lights_0700B130 = gdSPDefLights1(
0x4c, 0x4c, 0x4c,
0x99, 0x99, 0x99, 0x28, 0x28, 0x28
);
2019-11-03 19:36:27 +00:00
// 0x0700B148 - 0x0700B248
static const Vtx ttm_seg7_vertex_0700B148[] = {
{{{ 189, 1503, -188}, 0, { 114, 1692}, {0x4b, 0x00, 0x9b, 0xff}}},
{{{ 288, 1603, -23}, 0, { 404, 1134}, {0x76, 0x2a, 0xef, 0xff}}},
{{{ 288, 1503, -23}, 0, { 114, 1134}, {0x7d, 0x00, 0xee, 0xff}}},
{{{ 189, 1604, -188}, 0, { 406, 1692}, {0x3a, 0x51, 0xb2, 0xff}}},
{{{ -161, 1503, -136}, 0, { 810, 684}, {0x9b, 0x00, 0xb5, 0xff}}},
{{{ 3, 1604, -235}, 0, { 534, 478}, {0xee, 0x2a, 0x8a, 0xff}}},
{{{ 3, 1503, -235}, 0, { 534, 682}, {0xee, 0x00, 0x83, 0xff}}},
{{{ -161, 1604, -136}, 0, { 810, 480}, {0xaf, 0x4d, 0xc4, 0xff}}},
{{{ 189, 1503, -188}, 0, { 142, 684}, {0x4b, 0x00, 0x9b, 0xff}}},
{{{ 189, 1604, -188}, 0, { 142, 480}, {0x3a, 0x51, 0xb2, 0xff}}},
{{{ -144, 1653, 45}, 0, { -110, 234}, {0xd4, 0x76, 0x06, 0xff}}},
{{{ -208, 1606, 49}, 0, { 18, 292}, {0x89, 0x26, 0x11, 0xff}}},
{{{ -109, 1606, 214}, 0, { 174, -216}, {0xc7, 0x3e, 0x5d, 0xff}}},
{{{ -161, 1604, -136}, 0, { -130, 802}, {0xaf, 0x4d, 0xc4, 0xff}}},
{{{ -161, 1503, -136}, 0, { 156, 890}, {0x9b, 0x00, 0xb5, 0xff}}},
{{{ -208, 1503, 49}, 0, { 312, 382}, {0x83, 0x00, 0x12, 0xff}}},
};
// 0x0700B248 - 0x0700B338
static const Vtx ttm_seg7_vertex_0700B248[] = {
{{{ -109, 1503, 214}, 0, { 468, -126}, {0xa8, 0x00, 0x5a, 0xff}}},
{{{ -208, 1606, 49}, 0, { 18, 292}, {0x89, 0x26, 0x11, 0xff}}},
{{{ -208, 1503, 49}, 0, { 312, 382}, {0x83, 0x00, 0x12, 0xff}}},
{{{ -109, 1606, 214}, 0, { 174, -216}, {0xc7, 0x3e, 0x5d, 0xff}}},
{{{ 241, 1503, 162}, 0, { 1068, 752}, {0x6f, 0x00, 0x3d, 0xff}}},
{{{ 241, 1605, 162}, 0, { 1068, 480}, {0x50, 0x42, 0x48, 0xff}}},
{{{ 76, 1503, 261}, 0, { 586, 752}, {0x12, 0x00, 0x7d, 0xff}}},
{{{ 76, 1605, 261}, 0, { 586, 480}, {0x0f, 0x3b, 0x6e, 0xff}}},
{{{ -109, 1606, 214}, 0, { 104, 480}, {0xc7, 0x3e, 0x5d, 0xff}}},
{{{ -109, 1503, 214}, 0, { 104, 752}, {0xa8, 0x00, 0x5a, 0xff}}},
{{{ 206, 1653, -5}, 0, { 346, -154}, {0x27, 0x78, 0xfb, 0xff}}},
{{{ 241, 1605, 162}, 0, { -102, 68}, {0x50, 0x42, 0x48, 0xff}}},
{{{ 288, 1603, -23}, 0, { 454, 74}, {0x76, 0x2a, 0xef, 0xff}}},
{{{ 241, 1503, 162}, 0, { -104, 332}, {0x6f, 0x00, 0x3d, 0xff}}},
{{{ 288, 1503, -23}, 0, { 454, 332}, {0x7d, 0x00, 0xee, 0xff}}},
};
// 0x0700B338 - 0x0700B3F8
static const Vtx ttm_seg7_vertex_0700B338[] = {
{{{ 5, 1653, -155}, 0, { 458, 40}, {0xfb, 0x7a, 0xdf, 0xff}}},
{{{ -161, 1604, -136}, 0, { 32, 24}, {0xaf, 0x4d, 0xc4, 0xff}}},
{{{ -144, 1653, 45}, 0, { 8, 492}, {0xd4, 0x76, 0x06, 0xff}}},
{{{ 189, 1604, -188}, 0, { 936, 24}, {0x3a, 0x51, 0xb2, 0xff}}},
{{{ 3, 1604, -235}, 0, { 484, -162}, {0xee, 0x2a, 0x8a, 0xff}}},
{{{ 206, 1653, -5}, 0, { 910, 492}, {0x27, 0x78, 0xfb, 0xff}}},
{{{ 57, 1653, 195}, 0, { 458, 942}, {0x04, 0x79, 0x24, 0xff}}},
{{{ -109, 1606, 214}, 0, { 32, 928}, {0xc7, 0x3e, 0x5d, 0xff}}},
{{{ -208, 1606, 49}, 0, { -154, 476}, {0x89, 0x26, 0x11, 0xff}}},
{{{ 76, 1605, 261}, 0, { 484, 1112}, {0x0f, 0x3b, 0x6e, 0xff}}},
{{{ 241, 1605, 162}, 0, { 936, 928}, {0x50, 0x42, 0x48, 0xff}}},
{{{ 288, 1603, -23}, 0, { 1122, 476}, {0x76, 0x2a, 0xef, 0xff}}},
};
// 0x0700B3F8 - 0x0700B530
static const Gfx ttm_seg7_dl_0700B3F8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
2019-12-02 02:52:53 +00:00
gsSPLight(&ttm_seg7_lights_0700B130.l, 1),
gsSPLight(&ttm_seg7_lights_0700B130.a, 2),
2019-11-03 19:36:27 +00:00
gsSPVertex(ttm_seg7_vertex_0700B148, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
gsSP2Triangles( 5, 8, 6, 0x0, 5, 9, 8, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 11, 13, 14, 0x0),
gsSP1Triangle(11, 14, 15, 0x0),
gsSPVertex(ttm_seg7_vertex_0700B248, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
gsSP2Triangles( 6, 8, 9, 0x0, 6, 7, 8, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 12, 13, 14, 0x0),
gsSP1Triangle(12, 11, 13, 0x0),
gsSPVertex(ttm_seg7_vertex_0700B338, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 4, 0x0),
gsSP2Triangles( 5, 3, 0, 0x0, 0, 6, 5, 0x0),
gsSP2Triangles( 0, 2, 6, 0x0, 0, 4, 1, 0x0),
gsSP2Triangles( 2, 7, 6, 0x0, 2, 1, 8, 0x0),
gsSP2Triangles( 6, 9, 10, 0x0, 6, 10, 5, 0x0),
gsSP2Triangles( 6, 7, 9, 0x0, 5, 11, 3, 0x0),
gsSPEndDisplayList(),
};
// 0x0700B530 - 0x0700B590
const Gfx ttm_seg7_dl_0700B530[] = {
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_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(ttm_seg7_dl_0700B3F8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};