mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-29 23:43:01 +00:00
106 lines
6 KiB
C
106 lines
6 KiB
C
// 0x0700AB70 - 0x0700AB88
|
|
static const Lights1 ttm_seg7_lights_0700AB70 = gdSPDefLights1(
|
|
0x4c, 0x4c, 0x4c,
|
|
0x99, 0x99, 0x99, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700AB88 - 0x0700AC78
|
|
static const Vtx ttm_seg7_vertex_0700AB88[] = {
|
|
{{{ 214, 1635, 21}, 0, { 910, 492}, {0x27, 0x78, 0xfb, 0xff}}},
|
|
{{{ 330, 1563, -4}, 0, { 1122, 476}, {0x76, 0x2a, 0xef, 0xff}}},
|
|
{{{ 190, 1564, -239}, 0, { 936, 24}, {0x3a, 0x50, 0xb2, 0xff}}},
|
|
{{{ 214, 1635, 21}, 0, { 346, -154}, {0x27, 0x78, 0xfb, 0xff}}},
|
|
{{{ 263, 1566, 261}, 0, { -102, 68}, {0x50, 0x42, 0x48, 0xff}}},
|
|
{{{ 330, 1563, -4}, 0, { 454, 74}, {0x76, 0x2a, 0xef, 0xff}}},
|
|
{{{ 263, 1420, 261}, 0, { -104, 332}, {0x6f, 0x00, 0x3d, 0xff}}},
|
|
{{{ 330, 1420, -4}, 0, { 454, 332}, {0x7d, 0x00, 0xee, 0xff}}},
|
|
{{{ -287, 1635, 94}, 0, { 8, 492}, {0xd3, 0x76, 0x06, 0xff}}},
|
|
{{{ -237, 1567, 335}, 0, { 32, 928}, {0xc7, 0x3e, 0x5e, 0xff}}},
|
|
{{{ 0, 1635, 308}, 0, { 458, 942}, {0x04, 0x79, 0x24, 0xff}}},
|
|
{{{ 28, 1566, 402}, 0, { 484, 1112}, {0x0f, 0x3b, 0x6f, 0xff}}},
|
|
{{{ 263, 1566, 261}, 0, { 936, 928}, {0x50, 0x42, 0x48, 0xff}}},
|
|
{{{ -73, 1635, -192}, 0, { 458, 40}, {0xfb, 0x7a, 0xdf, 0xff}}},
|
|
{{{ -75, 1564, -306}, 0, { 484, -162}, {0xef, 0x29, 0x8a, 0xff}}},
|
|
};
|
|
|
|
// 0x0700AC78 - 0x0700AD78
|
|
static const Vtx ttm_seg7_vertex_0700AC78[] = {
|
|
{{{ -287, 1635, 94}, 0, { -110, 234}, {0xd3, 0x76, 0x06, 0xff}}},
|
|
{{{ -378, 1567, 100}, 0, { 18, 292}, {0x89, 0x26, 0x11, 0xff}}},
|
|
{{{ -237, 1567, 335}, 0, { 174, -216}, {0xc7, 0x3e, 0x5e, 0xff}}},
|
|
{{{ -238, 1420, 335}, 0, { 468, -126}, {0xa7, 0x00, 0x5a, 0xff}}},
|
|
{{{ -378, 1420, 100}, 0, { 312, 382}, {0x83, 0x00, 0x12, 0xff}}},
|
|
{{{ -311, 1564, -165}, 0, { -130, 802}, {0xaf, 0x4c, 0xc4, 0xff}}},
|
|
{{{ -311, 1420, -165}, 0, { 156, 890}, {0x9b, 0x00, 0xb5, 0xff}}},
|
|
{{{ -287, 1635, 94}, 0, { 8, 492}, {0xd3, 0x76, 0x06, 0xff}}},
|
|
{{{ -311, 1564, -165}, 0, { 32, 24}, {0xaf, 0x4c, 0xc4, 0xff}}},
|
|
{{{ -378, 1567, 100}, 0, { -154, 476}, {0x89, 0x26, 0x11, 0xff}}},
|
|
{{{ -73, 1635, -192}, 0, { 458, 40}, {0xfb, 0x7a, 0xdf, 0xff}}},
|
|
{{{ -75, 1564, -306}, 0, { 484, -162}, {0xef, 0x29, 0x8a, 0xff}}},
|
|
{{{ 263, 1420, 261}, 0, { 1068, 752}, {0x6f, 0x00, 0x3d, 0xff}}},
|
|
{{{ 263, 1566, 261}, 0, { 1068, 480}, {0x50, 0x42, 0x48, 0xff}}},
|
|
{{{ 27, 1420, 402}, 0, { 586, 752}, {0x12, 0x00, 0x7d, 0xff}}},
|
|
{{{ 28, 1566, 402}, 0, { 586, 480}, {0x0f, 0x3b, 0x6f, 0xff}}},
|
|
};
|
|
|
|
// 0x0700AD78 - 0x0700AE58
|
|
static const Vtx ttm_seg7_vertex_0700AD78[] = {
|
|
{{{ 27, 1420, 402}, 0, { 586, 752}, {0x12, 0x00, 0x7d, 0xff}}},
|
|
{{{ -237, 1567, 335}, 0, { 104, 480}, {0xc7, 0x3e, 0x5e, 0xff}}},
|
|
{{{ -238, 1420, 335}, 0, { 104, 752}, {0xa7, 0x00, 0x5a, 0xff}}},
|
|
{{{ 28, 1566, 402}, 0, { 586, 480}, {0x0f, 0x3b, 0x6f, 0xff}}},
|
|
{{{ -311, 1420, -165}, 0, { 810, 684}, {0x9b, 0x00, 0xb5, 0xff}}},
|
|
{{{ -75, 1564, -306}, 0, { 534, 478}, {0xef, 0x29, 0x8a, 0xff}}},
|
|
{{{ -76, 1420, -306}, 0, { 534, 682}, {0xee, 0x00, 0x83, 0xff}}},
|
|
{{{ -311, 1564, -165}, 0, { 810, 480}, {0xaf, 0x4c, 0xc4, 0xff}}},
|
|
{{{ 189, 1420, -239}, 0, { 142, 684}, {0x4b, 0x00, 0x9b, 0xff}}},
|
|
{{{ 190, 1564, -239}, 0, { 142, 480}, {0x3a, 0x50, 0xb2, 0xff}}},
|
|
{{{ 189, 1420, -239}, 0, { 114, 1692}, {0x4b, 0x00, 0x9b, 0xff}}},
|
|
{{{ 330, 1563, -4}, 0, { 404, 1134}, {0x76, 0x2a, 0xef, 0xff}}},
|
|
{{{ 330, 1420, -4}, 0, { 114, 1134}, {0x7d, 0x00, 0xee, 0xff}}},
|
|
{{{ 190, 1564, -239}, 0, { 406, 1692}, {0x3a, 0x50, 0xb2, 0xff}}},
|
|
};
|
|
|
|
// 0x0700AE58 - 0x0700AF90
|
|
static const Gfx ttm_seg7_dl_0700AE58[] = {
|
|
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)),
|
|
gsSPLight(&ttm_seg7_lights_0700AB70.l, 1),
|
|
gsSPLight(&ttm_seg7_lights_0700AB70.a, 2),
|
|
gsSPVertex(ttm_seg7_vertex_0700AB88, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 5, 4, 6, 0x0, 5, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 10, 9, 11, 0x0),
|
|
gsSP2Triangles(10, 12, 0, 0x0, 10, 11, 12, 0x0),
|
|
gsSP2Triangles(13, 10, 0, 0x0, 13, 8, 10, 0x0),
|
|
gsSP2Triangles( 0, 2, 13, 0x0, 13, 2, 14, 0x0),
|
|
gsSPVertex(ttm_seg7_vertex_0700AC78, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 1, 4, 0x0),
|
|
gsSP2Triangles( 3, 2, 1, 0x0, 1, 5, 6, 0x0),
|
|
gsSP2Triangles( 1, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles(10, 8, 7, 0x0, 10, 11, 8, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 13, 15, 14, 0x0),
|
|
gsSPVertex(ttm_seg7_vertex_0700AD78, 14, 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, 10, 13, 11, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700AF90 - 0x0700AFF0
|
|
const Gfx ttm_seg7_dl_0700AF90[] = {
|
|
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_0700AE58),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList(),
|
|
};
|