Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/wdw/water_level_diamond/model.inc.c
7861 views
1
// 0x07012F18 - 0x07012F30
2
static const Lights1 wdw_seg7_lights_07012F18 = gdSPDefLights1(
3
0x99, 0x99, 0x00,
4
0xff, 0xff, 0x00, 0x28, 0x28, 0x28
5
);
6
7
// 0x07012F30 - 0x07012F48
8
static const Lights1 wdw_seg7_lights_07012F30 = gdSPDefLights1(
9
0x00, 0x00, 0x99,
10
0x00, 0x00, 0xff, 0x28, 0x28, 0x28
11
);
12
13
// 0x07012F48 - 0x07012F60
14
static const Lights1 wdw_seg7_lights_07012F48 = gdSPDefLights1(
15
0x00, 0x99, 0x00,
16
0x00, 0xff, 0x00, 0x28, 0x28, 0x28
17
);
18
19
// 0x07012F60 - 0x07012F78
20
static const Lights1 wdw_seg7_lights_07012F60 = gdSPDefLights1(
21
0x99, 0x00, 0x00,
22
0xff, 0x00, 0x00, 0x28, 0x28, 0x28
23
);
24
25
// 0x07012F78 - 0x07012FD8
26
static const Vtx wdw_seg7_vertex_07012F78[] = {
27
{{{ -50, 51, -50}, 0, { 990, 0}, {0xa6, 0x58, 0x00, 0xff}}},
28
{{{ -50, 51, 51}, 0, { 0, 0}, {0xa6, 0x58, 0x00, 0xff}}},
29
{{{ 0, 102, 0}, 0, { 480, 932}, {0xa6, 0x58, 0x00, 0xff}}},
30
{{{ 51, 51, -50}, 0, { 990, 0}, {0x59, 0xa7, 0x00, 0xff}}},
31
{{{ 51, 51, 51}, 0, { 0, 0}, {0x59, 0xa7, 0x00, 0xff}}},
32
{{{ 0, 0, 0}, 0, { 480, 932}, {0x59, 0xa7, 0x00, 0xff}}},
33
};
34
35
// 0x07012FD8 - 0x07013038
36
static const Vtx wdw_seg7_vertex_07012FD8[] = {
37
{{{ 51, 51, 51}, 0, { 990, 0}, {0x59, 0x59, 0x00, 0xff}}},
38
{{{ 51, 51, -50}, 0, { 0, 0}, {0x59, 0x59, 0x00, 0xff}}},
39
{{{ 0, 102, 0}, 0, { 478, 932}, {0x59, 0x59, 0x00, 0xff}}},
40
{{{ -50, 51, 51}, 0, { 990, 0}, {0xa6, 0xa8, 0x00, 0xff}}},
41
{{{ -50, 51, -50}, 0, { 0, 0}, {0xa6, 0xa8, 0x00, 0xff}}},
42
{{{ 0, 0, 0}, 0, { 478, 932}, {0xa6, 0xa8, 0x00, 0xff}}},
43
};
44
45
// 0x07013038 - 0x07013098
46
static const Vtx wdw_seg7_vertex_07013038[] = {
47
{{{ -50, 51, 51}, 0, { 990, 0}, {0x00, 0x59, 0x59, 0xff}}},
48
{{{ 51, 51, 51}, 0, { 0, 0}, {0x00, 0x59, 0x59, 0xff}}},
49
{{{ 0, 102, 0}, 0, { 480, 932}, {0x00, 0x59, 0x59, 0xff}}},
50
{{{ -50, 51, -50}, 0, { 990, 0}, {0x00, 0xa8, 0xa6, 0xff}}},
51
{{{ 51, 51, -50}, 0, { 0, 0}, {0x00, 0xa8, 0xa6, 0xff}}},
52
{{{ 0, 0, 0}, 0, { 480, 932}, {0x00, 0xa8, 0xa6, 0xff}}},
53
};
54
55
// 0x07013098 - 0x070130F8
56
static const Vtx wdw_seg7_vertex_07013098[] = {
57
{{{ 51, 51, 51}, 0, { 990, 0}, {0x00, 0xa7, 0x59, 0xff}}},
58
{{{ -50, 51, 51}, 0, { 0, 0}, {0x00, 0xa7, 0x59, 0xff}}},
59
{{{ 0, 0, 0}, 0, { 478, 932}, {0x00, 0xa7, 0x59, 0xff}}},
60
{{{ 51, 51, -50}, 0, { 990, 0}, {0x00, 0x58, 0xa6, 0xff}}},
61
{{{ -50, 51, -50}, 0, { 0, 0}, {0x00, 0x58, 0xa6, 0xff}}},
62
{{{ 0, 102, 0}, 0, { 478, 932}, {0x00, 0x58, 0xa6, 0xff}}},
63
};
64
65
// 0x070130F8 - 0x070131B8
66
static const Gfx wdw_seg7_dl_070130F8[] = {
67
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wdw_seg7_texture_07001000),
68
gsDPLoadSync(),
69
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
70
gsSPLight(&wdw_seg7_lights_07012F18.l, 1),
71
gsSPLight(&wdw_seg7_lights_07012F18.a, 2),
72
gsSPVertex(wdw_seg7_vertex_07012F78, 6, 0),
73
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
74
gsSPLight(&wdw_seg7_lights_07012F30.l, 1),
75
gsSPLight(&wdw_seg7_lights_07012F30.a, 2),
76
gsSPVertex(wdw_seg7_vertex_07012FD8, 6, 0),
77
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
78
gsSPLight(&wdw_seg7_lights_07012F48.l, 1),
79
gsSPLight(&wdw_seg7_lights_07012F48.a, 2),
80
gsSPVertex(wdw_seg7_vertex_07013038, 6, 0),
81
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
82
gsSPLight(&wdw_seg7_lights_07012F60.l, 1),
83
gsSPLight(&wdw_seg7_lights_07012F60.a, 2),
84
gsSPVertex(wdw_seg7_vertex_07013098, 6, 0),
85
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
86
gsSPEndDisplayList(),
87
};
88
89
// 0x070131B8 - 0x07013238
90
const Gfx wdw_seg7_dl_070131B8[] = {
91
gsDPPipeSync(),
92
gsDPSetEnvColor(255, 255, 255, 200),
93
gsDPSetCombineMode(G_CC_MODULATERGBFADE, G_CC_MODULATERGBFADE),
94
gsSPClearGeometryMode(G_SHADING_SMOOTH),
95
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),
96
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
97
gsDPTileSync(),
98
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
99
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
100
gsSPDisplayList(wdw_seg7_dl_070130F8),
101
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
102
gsDPPipeSync(),
103
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
104
gsSPSetGeometryMode(G_SHADING_SMOOTH),
105
gsDPSetEnvColor(255, 255, 255, 255),
106
gsSPEndDisplayList(),
107
};
108
109