Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/lll/areas/2/5/model.inc.c
7862 views
1
// 0x07025AC0 - 0x07025B80
2
static const Vtx lll_seg7_vertex_07025AC0[] = {
3
{{{ -2732, 2391, -1140}, 0, { 479, 0}, {0xff, 0xff, 0xff, 0xff}}},
4
{{{ -2773, 2309, -1069}, 0, { 0, 479}, {0xff, 0xff, 0xff, 0xff}}},
5
{{{ -2732, 2309, -1140}, 0, { 479, 479}, {0xff, 0xff, 0xff, 0xff}}},
6
{{{ -2773, 2391, -1069}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
7
{{{ -2446, 2391, -1636}, 0, { 479, 0}, {0xff, 0xff, 0xff, 0xff}}},
8
{{{ -2487, 2309, -1565}, 0, { 0, 479}, {0xff, 0xff, 0xff, 0xff}}},
9
{{{ -2446, 2309, -1636}, 0, { 479, 479}, {0xff, 0xff, 0xff, 0xff}}},
10
{{{ -2487, 2391, -1565}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
11
{{{ 2937, 518, -30}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
12
{{{ 2937, 436, 51}, 0, { 479, 479}, {0xff, 0xff, 0xff, 0xff}}},
13
{{{ 2937, 518, 51}, 0, { 479, 0}, {0xff, 0xff, 0xff, 0xff}}},
14
{{{ 2937, 436, -30}, 0, { 0, 479}, {0xff, 0xff, 0xff, 0xff}}},
15
};
16
17
// 0x07025B80 - 0x07025BD8
18
static const Gfx lll_seg7_dl_07025B80[] = {
19
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700D000),
20
gsDPLoadSync(),
21
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 16 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)),
22
gsSPVertex(lll_seg7_vertex_07025AC0, 12, 0),
23
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
24
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
25
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
26
gsSPEndDisplayList(),
27
};
28
29
// 0x07025BD8 - 0x07025C90
30
const Gfx lll_seg7_dl_07025BD8[] = {
31
gsDPPipeSync(),
32
gsDPSetCycleType(G_CYC_2CYCLE),
33
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2),
34
gsDPSetDepthSource(G_ZS_PIXEL),
35
gsDPSetFogColor(0, 0, 0, 255),
36
gsSPFogFactor(0x0855, 0xF8AB), // This isn't gsSPFogPosition since there is no valid min/max pair that corresponds to 0x0855F8AB
37
gsSPSetGeometryMode(G_FOG),
38
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
39
gsSPClearGeometryMode(G_LIGHTING),
40
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),
41
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
42
gsDPTileSync(),
43
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 4, G_TX_NOLOD, G_TX_CLAMP, 4, G_TX_NOLOD),
44
gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC),
45
gsSPDisplayList(lll_seg7_dl_07025B80),
46
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
47
gsDPPipeSync(),
48
gsDPSetCycleType(G_CYC_1CYCLE),
49
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_NOOP2),
50
gsSPClearGeometryMode(G_FOG),
51
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
52
gsSPSetGeometryMode(G_LIGHTING),
53
gsSPEndDisplayList(),
54
};
55
56