Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/ttm/areas/1/7/model.inc.c
7862 views
1
// 0x0700BC70 - 0x0700BC88
2
static const Lights1 ttm_seg7_lights_0700BC70 = gdSPDefLights1(
3
0x7f, 0x7f, 0x7f,
4
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
5
);
6
7
// 0x0700BC88 - 0x0700BCA0
8
static const Lights1 ttm_seg7_lights_0700BC88 = gdSPDefLights1(
9
0x5d, 0x5d, 0x5d,
10
0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28
11
);
12
13
// 0x0700BCA0 - 0x0700BCE0
14
static const Vtx ttm_seg7_vertex_0700BCA0[] = {
15
{{{ 307, 32, 307}, 0, { 0, 2418}, {0x00, 0x7f, 0x00, 0xff}}},
16
{{{ 307, 32, -409}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
17
{{{ -306, 32, -409}, 0, { -1256, 990}, {0x00, 0x7f, 0x00, 0xff}}},
18
{{{ -306, 32, 307}, 0, { -1256, 2418}, {0x00, 0x7f, 0x00, 0xff}}},
19
};
20
21
// 0x0700BCE0 - 0x0700BDA0
22
static const Vtx ttm_seg7_vertex_0700BCE0[] = {
23
{{{ 307, 32, -409}, 0, { 0, 990}, {0x58, 0x5a, 0x00, 0xff}}},
24
{{{ 307, 32, 307}, 0, { 0, 2418}, {0x58, 0x5a, 0x00, 0xff}}},
25
{{{ 355, -15, 355}, 0, { 64, 2514}, {0x58, 0x5a, 0x00, 0xff}}},
26
{{{ 355, -15, 355}, 0, { 64, 2514}, {0x00, 0x5a, 0x58, 0xff}}},
27
{{{ 307, 32, 307}, 0, { 0, 2418}, {0x00, 0x5a, 0x58, 0xff}}},
28
{{{ -369, -30, 370}, 0, { -1380, 2544}, {0x00, 0x5a, 0x58, 0xff}}},
29
{{{ 307, 32, 307}, 0, { 0, 2418}, {0x00, 0x5a, 0x59, 0xff}}},
30
{{{ -306, 32, 307}, 0, { -1256, 2418}, {0x00, 0x5a, 0x59, 0xff}}},
31
{{{ -369, -30, 370}, 0, { -1380, 2544}, {0x00, 0x5a, 0x59, 0xff}}},
32
{{{ -369, -30, 370}, 0, { -1380, 2544}, {0xa7, 0x5a, 0x00, 0xff}}},
33
{{{ -306, 32, 307}, 0, { -1256, 2418}, {0xa7, 0x5a, 0x00, 0xff}}},
34
{{{ -306, 32, -409}, 0, { -1256, 990}, {0xa7, 0x5a, 0x00, 0xff}}},
35
};
36
37
// 0x0700BDA0 - 0x0700BE20
38
static const Gfx ttm_seg7_dl_0700BDA0[] = {
39
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000),
40
gsDPLoadSync(),
41
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
42
gsSPLight(&ttm_seg7_lights_0700BC70.l, 1),
43
gsSPLight(&ttm_seg7_lights_0700BC70.a, 2),
44
gsSPVertex(ttm_seg7_vertex_0700BCA0, 4, 0),
45
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
46
gsSPLight(&ttm_seg7_lights_0700BC88.l, 1),
47
gsSPLight(&ttm_seg7_lights_0700BC88.a, 2),
48
gsSPVertex(ttm_seg7_vertex_0700BCE0, 12, 0),
49
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
50
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
51
gsSPEndDisplayList(),
52
};
53
54
// 0x0700BE20 - 0x0700BE90
55
const Gfx ttm_seg7_dl_0700BE20[] = {
56
gsDPPipeSync(),
57
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
58
gsSPClearGeometryMode(G_SHADING_SMOOTH),
59
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),
60
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
61
gsDPTileSync(),
62
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),
63
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
64
gsSPDisplayList(ttm_seg7_dl_0700BDA0),
65
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
66
gsDPPipeSync(),
67
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
68
gsSPSetGeometryMode(G_SHADING_SMOOTH),
69
gsSPEndDisplayList(),
70
};
71
72