Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/hmc/areas/1/3/model.inc.c
7862 views
1
// 0x07007C08 - 0x07007CF8
2
static const Vtx hmc_seg7_vertex_07007C08[] = {
3
{{{ -3868, 2918, 5464}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
4
{{{ -4230, 2918, 5826}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
5
{{{ -4230, 2406, 5826}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
6
{{{ -8056, 3072, 7673}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
7
{{{ -7693, 2560, 8035}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
8
{{{ -8056, 2560, 7673}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
9
{{{ -7693, 3072, 8035}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
10
{{{ 297, 2816, 3917}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
11
{{{ 297, 2304, 3405}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
12
{{{ 297, 2304, 3917}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
13
{{{ 297, 2816, 3405}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
14
{{{ -4965, 2918, 6129}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
15
{{{ -5477, 2406, 6129}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
16
{{{ -4965, 2406, 6129}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
17
{{{ -5477, 2918, 6129}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
18
};
19
20
// 0x07007CF8 - 0x07007DE8
21
static const Vtx hmc_seg7_vertex_07007CF8[] = {
22
{{{ -3094, 2918, 5731}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
23
{{{ -2865, 2918, 5273}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
24
{{{ -2865, 2406, 5273}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
25
{{{ -3868, 2918, 5464}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
26
{{{ -4230, 2406, 5826}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
27
{{{ -3868, 2406, 5464}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
28
{{{ -2851, 2918, 4037}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
29
{{{ -3213, 2406, 4399}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
30
{{{ -2851, 2406, 4037}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
31
{{{ -3213, 2918, 4399}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
32
{{{ -1976, 2918, 4382}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
33
{{{ -1518, 2406, 4153}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
34
{{{ -1976, 2406, 4382}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
35
{{{ -1518, 2918, 4153}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
36
{{{ -3094, 2406, 5731}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
37
};
38
39
// 0x07007DE8 - 0x07007ED8
40
static const Vtx hmc_seg7_vertex_07007DE8[] = {
41
{{{ -6850, 2048, 2842}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
42
{{{ -6850, 2560, 2842}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
43
{{{ -6850, 2560, 3354}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
44
{{{ -4434, 2918, 6839}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
45
{{{ -3976, 2406, 6610}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
46
{{{ -4434, 2406, 6839}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
47
{{{ -3976, 2918, 6610}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
48
{{{ -6256, 2253, 4275}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
49
{{{ -6256, 2765, 3763}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
50
{{{ -6256, 2253, 3763}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
51
{{{ -6256, 2765, 4275}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
52
{{{ -6256, 1946, 2330}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
53
{{{ -6256, 2458, 1818}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
54
{{{ -6256, 1946, 1818}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
55
{{{ -6256, 2458, 2330}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
56
};
57
58
// 0x07007ED8 - 0x07007FC8
59
static const Vtx hmc_seg7_vertex_07007ED8[] = {
60
{{{ -6667, 2560, 7550}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
61
{{{ -7029, 2560, 7912}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
62
{{{ -7029, 3072, 7912}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
63
{{{ -6850, 2048, 2842}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
64
{{{ -6850, 2560, 3354}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
65
{{{ -6850, 2048, 3354}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
66
{{{ -6864, 2417, 4992}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
67
{{{ -6937, 2929, 5499}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
68
{{{ -6937, 2417, 5499}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
69
{{{ -6864, 2929, 4992}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
70
{{{ -7575, 3072, 6643}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
71
{{{ -7937, 2560, 7005}, 0, { 0, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
72
{{{ -7575, 2560, 6643}, 0, { 990, 990}, {0xff, 0xe6, 0x00, 0xb4}}},
73
{{{ -7937, 3072, 7005}, 0, { 0, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
74
{{{ -6667, 3072, 7550}, 0, { 990, 0}, {0xff, 0xe6, 0x00, 0xb4}}},
75
};
76
77
// 0x07007FC8 - 0x070080E8
78
static const Gfx hmc_seg7_dl_07007FC8[] = {
79
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, cave_0900C000),
80
gsDPLoadSync(),
81
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
82
gsSPVertex(hmc_seg7_vertex_07007C08, 15, 0),
83
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
84
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
85
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
86
gsSP1Triangle(11, 14, 12, 0x0),
87
gsSPVertex(hmc_seg7_vertex_07007CF8, 15, 0),
88
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
89
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
90
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
91
gsSP1Triangle( 0, 2, 14, 0x0),
92
gsSPVertex(hmc_seg7_vertex_07007DE8, 15, 0),
93
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
94
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
95
gsSP2Triangles( 7, 10, 8, 0x0, 11, 12, 13, 0x0),
96
gsSP1Triangle(11, 14, 12, 0x0),
97
gsSPVertex(hmc_seg7_vertex_07007ED8, 15, 0),
98
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
99
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
100
gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
101
gsSP1Triangle( 0, 2, 14, 0x0),
102
gsSPEndDisplayList(),
103
};
104
105
// 0x070080E8 - 0x07008158
106
const Gfx hmc_seg7_dl_070080E8[] = {
107
gsDPPipeSync(),
108
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
109
gsSPClearGeometryMode(G_LIGHTING),
110
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),
111
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
112
gsDPTileSync(),
113
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),
114
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
115
gsSPDisplayList(hmc_seg7_dl_07007FC8),
116
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
117
gsDPPipeSync(),
118
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
119
gsSPSetGeometryMode(G_LIGHTING),
120
gsSPEndDisplayList(),
121
};
122
123