Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/hmc/areas/1/19/model.inc.c
7862 views
1
// 0x07017D70 - 0x07017E60
2
static const Vtx hmc_seg7_vertex_07017D70[] = {
3
{{{ -5436, 1741, -3404}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
4
{{{ -5436, 2253, -3404}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
5
{{{ -5436, 2253, -3916}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
6
{{{ -5324, 3425, -6281}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
7
{{{ -4914, 3015, -6281}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
8
{{{ -5324, 3015, -6281}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
9
{{{ -4914, 3425, -6281}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
10
{{{ -5436, 2099, -6476}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
11
{{{ -5436, 2611, -6988}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
12
{{{ -5436, 2099, -6988}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
13
{{{ -5436, 2611, -6476}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
14
{{{ -5436, 1894, -4940}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
15
{{{ -5436, 2406, -5452}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
16
{{{ -5436, 1894, -5452}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
17
{{{ -5436, 2406, -4940}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
18
};
19
20
// 0x07017E60 - 0x07017F50
21
static const Vtx hmc_seg7_vertex_07017E60[] = {
22
{{{ -4709, 2355, 374}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
23
{{{ -4709, 1843, 374}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
24
{{{ -5221, 1843, 374}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
25
{{{ -5436, 1741, -3404}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
26
{{{ -5436, 2253, -3916}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
27
{{{ -5436, 1741, -3916}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
28
{{{ -3497, 2355, -866}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
29
{{{ -3621, 1843, -1362}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
30
{{{ -3497, 1843, -866}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
31
{{{ -3621, 2355, -1362}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
32
{{{ -4625, 2355, 454}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
33
{{{ -4263, 1843, 816}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
34
{{{ -4625, 1843, 454}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
35
{{{ -4263, 2355, 816}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
36
{{{ -5221, 2355, 374}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
37
};
38
39
// 0x07017F50 - 0x07018040
40
static const Vtx hmc_seg7_vertex_07017F50[] = {
41
{{{ -6542, 1735, -3916}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
42
{{{ -6542, 2247, -3404}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
43
{{{ -6542, 1735, -3404}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
44
{{{ -7582, 2355, 114}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
45
{{{ -7458, 1843, 611}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
46
{{{ -7582, 1843, 114}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
47
{{{ -7458, 2355, 611}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
48
{{{ -5597, 2355, 1112}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
49
{{{ -5368, 2355, 654}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
50
{{{ -5597, 1843, 1112}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
51
{{{ -5368, 1843, 654}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
52
{{{ -6542, 2094, -6988}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
53
{{{ -6542, 2606, -6988}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
54
{{{ -6542, 2606, -6476}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
55
{{{ -6542, 2094, -6476}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
56
};
57
58
// 0x07018040 - 0x070180F0
59
static const Vtx hmc_seg7_vertex_07018040[] = {
60
{{{ -5621, 3015, -8191}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
61
{{{ -5621, 3425, -8191}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
62
{{{ -5621, 3425, -7781}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
63
{{{ -6542, 1735, -3916}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
64
{{{ -6542, 2247, -3916}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
65
{{{ -6542, 2247, -3404}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
66
{{{ -3248, 2355, 127}, 0, { 990, 0}, {0xff, 0x55, 0x00, 0xb4}}},
67
{{{ -3372, 1843, -369}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
68
{{{ -3248, 1843, 127}, 0, { 990, 990}, {0xff, 0x55, 0x00, 0xb4}}},
69
{{{ -3372, 2355, -369}, 0, { 0, 0}, {0xff, 0x55, 0x00, 0xb4}}},
70
{{{ -5621, 3015, -7781}, 0, { 0, 990}, {0xff, 0x55, 0x00, 0xb4}}},
71
};
72
73
// 0x070180F0 - 0x07018200
74
static const Gfx hmc_seg7_dl_070180F0[] = {
75
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, cave_0900C000),
76
gsDPLoadSync(),
77
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
78
gsSPVertex(hmc_seg7_vertex_07017D70, 15, 0),
79
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
80
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
81
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
82
gsSP1Triangle(11, 14, 12, 0x0),
83
gsSPVertex(hmc_seg7_vertex_07017E60, 15, 0),
84
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
85
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
86
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
87
gsSP1Triangle(14, 0, 2, 0x0),
88
gsSPVertex(hmc_seg7_vertex_07017F50, 15, 0),
89
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
90
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
91
gsSP2Triangles( 8, 10, 9, 0x0, 11, 12, 13, 0x0),
92
gsSP1Triangle(11, 13, 14, 0x0),
93
gsSPVertex(hmc_seg7_vertex_07018040, 11, 0),
94
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
95
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
96
gsSP1Triangle( 0, 2, 10, 0x0),
97
gsSPEndDisplayList(),
98
};
99
100
// 0x07018200 - 0x07018270
101
const Gfx hmc_seg7_dl_07018200[] = {
102
gsDPPipeSync(),
103
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
104
gsSPClearGeometryMode(G_LIGHTING),
105
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),
106
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
107
gsDPTileSync(),
108
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),
109
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
110
gsSPDisplayList(hmc_seg7_dl_070180F0),
111
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
112
gsDPPipeSync(),
113
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
114
gsSPSetGeometryMode(G_LIGHTING),
115
gsSPEndDisplayList(),
116
};
117
118