Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/lll/volcano_falling_trap/model.inc.c
7861 views
1
// 0x07025C90 - 0x07025D70
2
static const Vtx lll_seg7_vertex_07025C90[] = {
3
{{{ -306, 614, 0}, 0, { 0, 864}, {0x77, 0x77, 0x77, 0xff}}},
4
{{{ -306, -101, 0}, 0, { 0, 3184}, {0x77, 0x77, 0x77, 0xff}}},
5
{{{ -306, -101, 102}, 0, { 300, 3184}, {0x77, 0x77, 0x77, 0xff}}},
6
{{{ -306, 614, 102}, 0, { 300, 864}, {0x77, 0x77, 0x77, 0xff}}},
7
{{{ 307, -101, 0}, 0, { 3086, 3184}, {0x77, 0x77, 0x77, 0xff}}},
8
{{{ 307, 614, 102}, 0, { 2754, 864}, {0x77, 0x77, 0x77, 0xff}}},
9
{{{ 307, -101, 102}, 0, { 2754, 3184}, {0x77, 0x77, 0x77, 0xff}}},
10
{{{ 307, 614, 0}, 0, { 3086, 864}, {0x77, 0x77, 0x77, 0xff}}},
11
{{{ -306, -101, 0}, 0, { 5078, 3184}, {0xff, 0xff, 0xff, 0xff}}},
12
{{{ -306, 614, 0}, 0, { 5078, 864}, {0xff, 0xff, 0xff, 0xff}}},
13
{{{ 307, 614, 0}, 0, { 3086, 864}, {0xff, 0xff, 0xff, 0xff}}},
14
{{{ 307, -101, 0}, 0, { 3086, 3184}, {0xff, 0xff, 0xff, 0xff}}},
15
{{{ 307, 614, 102}, 0, { 3086, 830}, {0xff, 0xff, 0xff, 0xff}}},
16
{{{ -306, 614, 102}, 0, { 5078, 830}, {0xff, 0xff, 0xff, 0xff}}},
17
};
18
19
// 0x07025D70 - 0x07025E10
20
static const Vtx lll_seg7_vertex_07025D70[] = {
21
{{{ 307, -101, 102}, 0, { -2584, -4120}, {0x77, 0x77, 0x77, 0xff}}},
22
{{{ 307, 614, 102}, 0, { -2584, 3032}, {0x77, 0x77, 0x77, 0xff}}},
23
{{{ 307, -101, 700}, 0, { -2584, -4120}, {0x77, 0x77, 0x77, 0xff}}},
24
{{{ -306, 614, 102}, 0, { 3544, 3032}, {0x77, 0x77, 0x77, 0xff}}},
25
{{{ -306, -101, 102}, 0, { 3546, -4120}, {0x77, 0x77, 0x77, 0xff}}},
26
{{{ -306, -101, 700}, 0, { 3544, -4120}, {0x77, 0x77, 0x77, 0xff}}},
27
{{{ 307, -101, 700}, 0, { -2584, -4120}, {0xff, 0xff, 0xff, 0xff}}},
28
{{{ -306, 614, 102}, 0, { 3544, 3032}, {0xff, 0xff, 0xff, 0xff}}},
29
{{{ -306, -101, 700}, 0, { 3544, -4120}, {0xff, 0xff, 0xff, 0xff}}},
30
{{{ 307, 614, 102}, 0, { -2584, 3032}, {0xff, 0xff, 0xff, 0xff}}},
31
};
32
33
// 0x07025E10 - 0x07025E78
34
static const Gfx lll_seg7_dl_07025E10[] = {
35
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700DC00),
36
gsDPLoadSync(),
37
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
38
gsSPVertex(lll_seg7_vertex_07025C90, 14, 0),
39
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
40
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
41
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
42
gsSP2Triangles( 9, 12, 10, 0x0, 9, 13, 12, 0x0),
43
gsSPEndDisplayList(),
44
};
45
46
// 0x07025E78 - 0x07025EC0
47
static const Gfx lll_seg7_dl_07025E78[] = {
48
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900A000),
49
gsDPLoadSync(),
50
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
51
gsSPVertex(lll_seg7_vertex_07025D70, 10, 0),
52
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
53
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
54
gsSPEndDisplayList(),
55
};
56
57
// 0x07025EC0 - 0x07025F80
58
const Gfx lll_seg7_dl_07025EC0[] = {
59
gsDPPipeSync(),
60
gsDPSetCycleType(G_CYC_2CYCLE),
61
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
62
gsDPSetDepthSource(G_ZS_PIXEL),
63
gsDPSetFogColor(0, 0, 0, 255),
64
gsSPFogFactor(0x0855, 0xF8AB), // This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0855F8AB
65
gsSPSetGeometryMode(G_FOG),
66
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
67
gsSPClearGeometryMode(G_LIGHTING),
68
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),
69
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
70
gsDPTileSync(),
71
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),
72
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
73
gsSPDisplayList(lll_seg7_dl_07025E10),
74
gsSPDisplayList(lll_seg7_dl_07025E78),
75
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
76
gsDPPipeSync(),
77
gsDPSetCycleType(G_CYC_1CYCLE),
78
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
79
gsSPClearGeometryMode(G_FOG),
80
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
81
gsSPSetGeometryMode(G_LIGHTING),
82
gsSPEndDisplayList(),
83
};
84
85