Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/hmc/areas/1/grill_door/model.inc.c
7862 views
1
// 0x0701FDC8 - 0x0701FEB8
2
static const Vtx hmc_seg7_vertex_0701FDC8[] = {
3
{{{ 410, 0, 51}, 0, { 0, 4054}, {0xff, 0xff, 0xff, 0xff}}},
4
{{{ 410, 717, -50}, 0, { 990, -3098}, {0xff, 0xff, 0xff, 0xff}}},
5
{{{ 410, 717, 51}, 0, { 0, -3098}, {0xff, 0xff, 0xff, 0xff}}},
6
{{{ 410, 717, 51}, 0, { 3034, 0}, {0xff, 0xff, 0xff, 0xff}}},
7
{{{ 410, 717, -50}, 0, { 3034, 990}, {0xff, 0xff, 0xff, 0xff}}},
8
{{{ 0, 717, -50}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
9
{{{ 0, 717, 51}, 0, { -1052, 0}, {0xff, 0xff, 0xff, 0xff}}},
10
{{{ 0, 717, 51}, 0, { 0, -3098}, {0xff, 0xff, 0xff, 0xff}}},
11
{{{ 0, 717, -50}, 0, { 990, -3098}, {0xff, 0xff, 0xff, 0xff}}},
12
{{{ 0, 0, -50}, 0, { 990, 4054}, {0xff, 0xff, 0xff, 0xff}}},
13
{{{ 0, 0, 51}, 0, { 0, 4054}, {0xff, 0xff, 0xff, 0xff}}},
14
{{{ 0, 0, 51}, 0, { -1052, 0}, {0xff, 0xff, 0xff, 0xff}}},
15
{{{ 0, 0, -50}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
16
{{{ 410, 0, -50}, 0, { 3034, 990}, {0xff, 0xff, 0xff, 0xff}}},
17
{{{ 410, 0, 51}, 0, { 3034, 0}, {0xff, 0xff, 0xff, 0xff}}},
18
};
19
20
// 0x0701FEB8 - 0x0701FF68
21
static const Vtx hmc_seg7_vertex_0701FEB8[] = {
22
{{{ 410, 717, 51}, 0, { 2012, -3098}, {0xff, 0xff, 0xff, 0xff}}},
23
{{{ 0, 0, 51}, 0, { -2074, 4054}, {0xff, 0xff, 0xff, 0xff}}},
24
{{{ 410, 0, 51}, 0, { 2012, 4054}, {0xff, 0xff, 0xff, 0xff}}},
25
{{{ 410, 0, 51}, 0, { 0, 4054}, {0xff, 0xff, 0xff, 0xff}}},
26
{{{ 410, 0, -50}, 0, { 990, 4054}, {0xff, 0xff, 0xff, 0xff}}},
27
{{{ 410, 717, -50}, 0, { 990, -3098}, {0xff, 0xff, 0xff, 0xff}}},
28
{{{ 410, 0, -50}, 0, { 2012, 4054}, {0xff, 0xff, 0xff, 0xff}}},
29
{{{ 0, 0, -50}, 0, { -2074, 4054}, {0xff, 0xff, 0xff, 0xff}}},
30
{{{ 0, 717, -50}, 0, { -2074, -3098}, {0xff, 0xff, 0xff, 0xff}}},
31
{{{ 410, 717, -50}, 0, { 2012, -3098}, {0xff, 0xff, 0xff, 0xff}}},
32
{{{ 0, 717, 51}, 0, { -2074, -3098}, {0xff, 0xff, 0xff, 0xff}}},
33
};
34
35
// 0x0701FF68 - 0x0701FFF8
36
static const Gfx hmc_seg7_dl_0701FF68[] = {
37
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, cave_09001000),
38
gsDPLoadSync(),
39
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
40
gsSPVertex(hmc_seg7_vertex_0701FDC8, 15, 0),
41
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
42
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
43
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
44
gsSP1Triangle(11, 13, 14, 0x0),
45
gsSPVertex(hmc_seg7_vertex_0701FEB8, 11, 0),
46
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
47
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
48
gsSP1Triangle( 0, 10, 1, 0x0),
49
gsSPEndDisplayList(),
50
};
51
52
// 0x0701FFF8 - 0x070200B0
53
const Gfx hmc_seg7_dl_0701FFF8[] = {
54
gsDPPipeSync(),
55
gsDPSetCycleType(G_CYC_2CYCLE),
56
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2),
57
gsDPSetDepthSource(G_ZS_PIXEL),
58
gsDPSetFogColor(0, 0, 0, 255),
59
gsSPFogPosition(960, 1000),
60
gsSPSetGeometryMode(G_FOG),
61
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
62
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
63
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),
64
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
65
gsDPTileSync(),
66
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),
67
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
68
gsSPDisplayList(hmc_seg7_dl_0701FF68),
69
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
70
gsDPPipeSync(),
71
gsDPSetCycleType(G_CYC_1CYCLE),
72
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2),
73
gsSPClearGeometryMode(G_FOG),
74
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
75
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
76
gsSPEndDisplayList(),
77
};
78
79