Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/hmc/arrow_platform_button/model.inc.c
7861 views
1
// 0x07022E78 - 0x07022E90
2
static const Lights1 hmc_seg7_lights_07022E78 = gdSPDefLights1(
3
0x79, 0x79, 0x79,
4
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
5
);
6
7
// 0x07022E90 - 0x07022EA8
8
static const Lights1 hmc_seg7_lights_07022E90 = gdSPDefLights1(
9
0x4f, 0x64, 0x5b,
10
0xa8, 0xd3, 0xc0, 0x28, 0x28, 0x28
11
);
12
13
// 0x07022EA8 - 0x07022EE8
14
static const Vtx hmc_seg7_vertex_07022EA8[] = {
15
{{{ 38, 11, 38}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}},
16
{{{ 38, 11, -37}, 0, { 990, 990}, {0x00, 0x7f, 0x00, 0xff}}},
17
{{{ -37, 11, -37}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}},
18
{{{ -37, 11, 38}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}},
19
};
20
21
// 0x07022EE8 - 0x07022FE8
22
static const Vtx hmc_seg7_vertex_07022EE8[] = {
23
{{{ -50, 0, -50}, 0, { 0, 0}, {0x00, 0x60, 0xae, 0xff}}},
24
{{{ -37, 11, -37}, 0, { 0, 0}, {0x00, 0x60, 0xae, 0xff}}},
25
{{{ 51, 0, -50}, 0, { 0, 0}, {0x00, 0x60, 0xae, 0xff}}},
26
{{{ 38, 11, -37}, 0, { 0, 0}, {0x00, 0x60, 0xae, 0xff}}},
27
{{{ 51, 0, -50}, 0, { 0, 0}, {0x52, 0x60, 0x00, 0xff}}},
28
{{{ 38, 11, -37}, 0, { 0, 0}, {0x52, 0x60, 0x00, 0xff}}},
29
{{{ 51, 0, 51}, 0, { 0, 0}, {0x52, 0x60, 0x00, 0xff}}},
30
{{{ 38, 11, 38}, 0, { 0, 0}, {0x52, 0x60, 0x00, 0xff}}},
31
{{{ -37, 11, 38}, 0, { 0, 0}, {0xae, 0x60, 0x00, 0xff}}},
32
{{{ -37, 11, -37}, 0, { 0, 0}, {0xae, 0x60, 0x00, 0xff}}},
33
{{{ -50, 0, -50}, 0, { 0, 0}, {0xae, 0x60, 0x00, 0xff}}},
34
{{{ -50, 0, 51}, 0, { 0, 0}, {0xae, 0x60, 0x00, 0xff}}},
35
{{{ 38, 11, 38}, 0, { 0, 0}, {0x00, 0x60, 0x52, 0xff}}},
36
{{{ -50, 0, 51}, 0, { 0, 0}, {0x00, 0x60, 0x52, 0xff}}},
37
{{{ 51, 0, 51}, 0, { 0, 0}, {0x00, 0x60, 0x52, 0xff}}},
38
{{{ -37, 11, 38}, 0, { 0, 0}, {0x00, 0x60, 0x52, 0xff}}},
39
};
40
41
// 0x07022FE8 - 0x07023030
42
static const Gfx hmc_seg7_dl_07022FE8[] = {
43
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, hmc_seg7_texture_07003800),
44
gsDPLoadSync(),
45
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
46
gsSPLight(&hmc_seg7_lights_07022E78.l, 1),
47
gsSPLight(&hmc_seg7_lights_07022E78.a, 2),
48
gsSPVertex(hmc_seg7_vertex_07022EA8, 4, 0),
49
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
50
gsSPEndDisplayList(),
51
};
52
53
// 0x07023030 - 0x07023090
54
static const Gfx hmc_seg7_dl_07023030[] = {
55
gsSPLight(&hmc_seg7_lights_07022E90.l, 1),
56
gsSPLight(&hmc_seg7_lights_07022E90.a, 2),
57
gsSPVertex(hmc_seg7_vertex_07022EE8, 16, 0),
58
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
59
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
60
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
61
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
62
gsSPEndDisplayList(),
63
};
64
65
// 0x07023090 - 0x07023160
66
const Gfx hmc_seg7_dl_07023090[] = {
67
gsDPPipeSync(),
68
gsDPSetCycleType(G_CYC_2CYCLE),
69
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
70
gsDPSetDepthSource(G_ZS_PIXEL),
71
gsDPSetFogColor(0, 0, 0, 255),
72
gsSPFogPosition(960, 1000),
73
gsSPSetGeometryMode(G_FOG),
74
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
75
gsSPClearGeometryMode(G_SHADING_SMOOTH),
76
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),
77
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
78
gsDPTileSync(),
79
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),
80
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
81
gsSPDisplayList(hmc_seg7_dl_07022FE8),
82
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
83
gsDPPipeSync(),
84
gsDPSetCombineMode(G_CC_SHADE, G_CC_PASS2),
85
gsSPDisplayList(hmc_seg7_dl_07023030),
86
gsDPPipeSync(),
87
gsDPSetCycleType(G_CYC_1CYCLE),
88
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
89
gsSPClearGeometryMode(G_FOG),
90
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
91
gsSPSetGeometryMode(G_SHADING_SMOOTH),
92
gsSPEndDisplayList(),
93
};
94
95