Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/thi/areas/3/1/model.inc.c
7862 views
1
// 0x070079D0 - 0x07007AB0
2
static const Vtx thi_seg7_vertex_070079D0[] = {
3
{{{ -101, 2458, 102}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
4
{{{ 102, 3072, 102}, 0, { 0, 744}, {0xff, 0xff, 0xff, 0x80}}},
5
{{{ 102, 2458, 102}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0x80}}},
6
{{{ 614, 1024, 2048}, 0, { 274, 662}, {0xff, 0xff, 0xff, 0x80}}},
7
{{{ 614, 1229, 2048}, 0, { 70, 662}, {0xff, 0xff, 0xff, 0x80}}},
8
{{{ 717, 1331, 1229}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0x80}}},
9
{{{ 717, 922, 1229}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
10
{{{ 307, 1331, 1229}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0x80}}},
11
{{{ 410, 1024, 2048}, 0, { 274, 662}, {0xff, 0xff, 0xff, 0x80}}},
12
{{{ 307, 922, 1229}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
13
{{{ 410, 1229, 2048}, 0, { 70, 662}, {0xff, 0xff, 0xff, 0x80}}},
14
{{{ 614, 1229, 2048}, 0, { 70, 716}, {0xff, 0xff, 0xff, 0x80}}},
15
{{{ 410, 1229, 2048}, 0, { 274, 716}, {0xff, 0xff, 0xff, 0x80}}},
16
{{{ 307, 1331, 1229}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
17
};
18
19
// 0x07007AB0 - 0x07007B80
20
static const Vtx thi_seg7_vertex_07007AB0[] = {
21
{{{ 102, 2458, 102}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
22
{{{ 102, 3072, -101}, 0, { 70, 762}, {0xff, 0xff, 0xff, 0x80}}},
23
{{{ 102, 2458, -101}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0x80}}},
24
{{{ -101, 2458, 102}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
25
{{{ -101, 3072, 102}, 0, { 376, 744}, {0xff, 0xff, 0xff, 0x80}}},
26
{{{ 102, 3072, 102}, 0, { 0, 744}, {0xff, 0xff, 0xff, 0x80}}},
27
{{{ 102, 3072, -101}, 0, { 0, 744}, {0xff, 0xff, 0xff, 0x80}}},
28
{{{ -101, 3072, -101}, 0, { 376, 744}, {0xff, 0xff, 0xff, 0x80}}},
29
{{{ -101, 2458, -101}, 0, { 376, 990}, {0xff, 0xff, 0xff, 0x80}}},
30
{{{ -101, 3072, -101}, 0, { 274, 762}, {0xff, 0xff, 0xff, 0x80}}},
31
{{{ -101, 3072, 102}, 0, { 70, 762}, {0xff, 0xff, 0xff, 0x80}}},
32
{{{ -101, 2458, 102}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0x80}}},
33
{{{ 102, 3072, 102}, 0, { 274, 762}, {0xff, 0xff, 0xff, 0x80}}},
34
};
35
36
// 0x07007B80 - 0x07007C20
37
static const Gfx thi_seg7_dl_07007B80[] = {
38
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, grass_0900B800),
39
gsDPLoadSync(),
40
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
41
gsSPVertex(thi_seg7_vertex_070079D0, 14, 0),
42
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
43
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
44
gsSP2Triangles( 7, 10, 8, 0x0, 5, 11, 12, 0x0),
45
gsSP1Triangle( 5, 12, 13, 0x0),
46
gsSPVertex(thi_seg7_vertex_07007AB0, 13, 0),
47
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
48
gsSP2Triangles( 2, 6, 7, 0x0, 2, 7, 8, 0x0),
49
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
50
gsSP1Triangle( 0, 12, 1, 0x0),
51
gsSPEndDisplayList(),
52
};
53
54
// 0x07007C20 - 0x07007C90
55
const Gfx thi_seg7_dl_07007C20[] = {
56
gsDPPipeSync(),
57
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
58
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
59
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),
60
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
61
gsDPTileSync(),
62
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
63
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
64
gsSPDisplayList(thi_seg7_dl_07007B80),
65
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
66
gsDPPipeSync(),
67
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
68
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
69
gsSPEndDisplayList(),
70
};
71
72