mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-01 16:27:27 +00:00
129 lines
6.8 KiB
C
129 lines
6.8 KiB
C
// 0x07008930 - 0x07008948
|
|
static const Lights1 sl_seg7_lights_07008930 = gdSPDefLights1(
|
|
0x7f, 0x7f, 0x7f,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x07008948 - 0x07008960
|
|
static const Lights1 sl_seg7_lights_07008948 = gdSPDefLights1(
|
|
0x22, 0x17, 0x00,
|
|
0x44, 0x2f, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x07008960 - 0x07008A60
|
|
static const Vtx sl_seg7_vertex_07008960[] = {
|
|
{{{ 1487, 1536, -3572}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1691, 1536, -3435}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1828, 1536, -3639}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1889, 2816, -1035}, 0, { 990, 92}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1643, 2816, -1032}, 0, { 0, 102}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1643, 2816, -819}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1793, 2816, -819}, 0, { 590, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1889, 2816, -925}, 0, { 990, 550}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -2916, 1024, -549}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -2712, 1024, -412}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -2575, 1024, -615}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -2779, 1024, -753}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1624, 1536, -3776}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5496, 1024, -3308}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5700, 1024, -3170}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5837, 1024, -3374}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x07008A60 - 0x07008B50
|
|
static const Vtx sl_seg7_vertex_07008A60[] = {
|
|
{{{ 1748, 1024, -4726}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 2089, 1024, -4792}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1885, 1024, -4930}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 1952, 1024, -4589}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 3475, 1024, -5856}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 3816, 1024, -5922}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 3612, 1024, -6059}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 3679, 1024, -5718}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5225, 1055, -5410}, 0, { 0, 0}, {0x00, 0x7e, 0xfb, 0xff}}},
|
|
{{{ 5566, 1053, -5476}, 0, { 990, 990}, {0x00, 0x7e, 0xfb, 0xff}}},
|
|
{{{ 5362, 1046, -5613}, 0, { 990, 0}, {0x00, 0x7e, 0xfb, 0xff}}},
|
|
{{{ 5428, 1062, -5273}, 0, { 0, 990}, {0x00, 0x7e, 0xfb, 0xff}}},
|
|
{{{ -170, 4864, 33}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 33, 4864, 171}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 171, 4864, -32}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x07008B50 - 0x07008BF0
|
|
static const Vtx sl_seg7_vertex_07008B50[] = {
|
|
{{{ 5496, 1024, -3308}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5837, 1024, -3374}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5633, 1024, -3512}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -3940, 1024, -1163}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -3599, 1024, -1230}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -3803, 1024, -1367}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -3736, 1024, -1026}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -170, 4864, 33}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 171, 4864, -32}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ -32, 4864, -170}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x07008BF0 - 0x07008C30
|
|
static const Vtx sl_seg7_vertex_07008BF0[] = {
|
|
{{{ 3762, 1024, 5487}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5401, 1024, 3849}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 3762, 1024, 3849}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
{{{ 5401, 1024, 5487}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
|
|
};
|
|
|
|
// 0x07008C30 - 0x07008D10
|
|
static const Gfx sl_seg7_dl_07008C30[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009800),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&sl_seg7_lights_07008930.l, 1),
|
|
gsSPLight(&sl_seg7_lights_07008930.a, 2),
|
|
gsSPVertex(sl_seg7_vertex_07008960, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 5, 6, 0x0, 3, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
|
|
gsSP2Triangles( 0, 2, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(sl_seg7_vertex_07008A60, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
|
|
gsSP1Triangle(12, 13, 14, 0x0),
|
|
gsSPVertex(sl_seg7_vertex_07008B50, 10, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x07008D10 - 0x07008D58
|
|
static const Gfx sl_seg7_dl_07008D10[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, snow_09009000),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&sl_seg7_lights_07008948.l, 1),
|
|
gsSPLight(&sl_seg7_lights_07008948.a, 2),
|
|
gsSPVertex(sl_seg7_vertex_07008BF0, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x07008D58 - 0x07008DE8
|
|
const Gfx sl_seg7_dl_07008D58[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
gsDPSetTile(G_IM_FMT_IA, 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_IA, 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(sl_seg7_dl_07008C30),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_IA, 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(sl_seg7_dl_07008D10),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|