Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/bbh/areas/1/39/model.inc.c
7862 views
1
// 0x0701EF58 - 0x0701F018
2
static const Vtx bbh_seg7_vertex_0701EF58[] = {
3
{{{ -1561, 538, -1673}, 0, { 478, 990}, {0xff, 0xcc, 0x90, 0xff}}},
4
{{{ -1535, 614, -1648}, 0, { 0, 0}, {0xff, 0xcc, 0x90, 0xff}}},
5
{{{ -1535, 538, -1648}, 0, { 0, 990}, {0xff, 0xcc, 0x90, 0xff}}},
6
{{{ -1561, 614, -1673}, 0, { 480, 0}, {0xff, 0xcc, 0x90, 0xff}}},
7
{{{ -1586, 538, -1648}, 0, { 990, 990}, {0xff, 0xcc, 0x90, 0xff}}},
8
{{{ -1561, 538, -1673}, 0, { 480, 990}, {0xff, 0xcc, 0x90, 0xff}}},
9
{{{ -1586, 614, -1648}, 0, { 990, 0}, {0xff, 0xcc, 0x90, 0xff}}},
10
{{{ -1561, 614, -1673}, 0, { 480, 990}, {0xff, 0xcc, 0x90, 0xff}}},
11
{{{ -1586, 614, -1648}, 0, { 990, 480}, {0xff, 0xcc, 0x90, 0xff}}},
12
{{{ -1535, 614, -1648}, 0, { 0, 480}, {0xff, 0xcc, 0x90, 0xff}}},
13
{{{ -1586, 538, -1648}, 0, { 990, 480}, {0xff, 0xcc, 0x90, 0xff}}},
14
{{{ -1535, 538, -1648}, 0, { 0, 480}, {0xff, 0xcc, 0x90, 0xff}}},
15
};
16
17
// 0x0701F018 - 0x0701F070
18
static const Gfx bbh_seg7_dl_0701F018[] = {
19
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006800),
20
gsDPLoadSync(),
21
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
22
gsSPVertex(bbh_seg7_vertex_0701EF58, 12, 0),
23
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
24
gsSP2Triangles( 4, 3, 5, 0x0, 4, 6, 3, 0x0),
25
gsSP2Triangles( 7, 8, 9, 0x0, 10, 5, 11, 0x0),
26
gsSPEndDisplayList(),
27
};
28
29
// 0x0701F070 - 0x0701F0E0
30
const Gfx bbh_seg7_dl_0701F070[] = {
31
gsDPPipeSync(),
32
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
33
gsSPClearGeometryMode(G_LIGHTING),
34
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),
35
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
36
gsDPTileSync(),
37
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),
38
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
39
gsSPDisplayList(bbh_seg7_dl_0701F018),
40
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
41
gsDPPipeSync(),
42
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
43
gsSPSetGeometryMode(G_LIGHTING),
44
gsSPEndDisplayList(),
45
};
46
47