Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/actors/butterfly/model.inc.c
7857 views
1
// Butterfly
2
3
// 0x03004348
4
static const Vtx butterfly_seg3_vertex_03004348[] = {
5
{{{ 0, 0, -78}, 0, { 2004, -48}, {0xff, 0xff, 0xff, 0xff}}},
6
{{{ 79, 0, 39}, 0, { -60, 4056}, {0xff, 0xff, 0xff, 0xff}}},
7
{{{ 79, 0, -78}, 0, { -56, -48}, {0xff, 0xff, 0xff, 0xff}}},
8
{{{ 0, 0, -78}, 0, { 2004, -48}, {0xff, 0xff, 0xff, 0xff}}},
9
{{{ 0, 0, 39}, 0, { 2004, 4056}, {0xff, 0xff, 0xff, 0xff}}},
10
{{{ 79, 0, 39}, 0, { -60, 4056}, {0xff, 0xff, 0xff, 0xff}}},
11
};
12
13
// 0x030043A8
14
ALIGNED8 static const Texture butterfly_seg3_texture_030043A8[] = {
15
#include "actors/butterfly/butterfly_wing.rgba16.inc.c"
16
};
17
18
// 0x030053A8
19
static const Vtx butterfly_seg3_vertex_030053A8[] = {
20
{{{ 79, 0, -78}, 0, { -56, 0}, {0xff, 0xff, 0xff, 0xff}}},
21
{{{ 0, 0, 39}, 0, { 1972, 4024}, {0xff, 0xff, 0xff, 0xff}}},
22
{{{ 0, 0, -78}, 0, { 2000, 0}, {0xff, 0xff, 0xff, 0xff}}},
23
{{{ 79, 0, -78}, 0, { -56, 0}, {0xff, 0xff, 0xff, 0xff}}},
24
{{{ 79, 0, 39}, 0, { -80, 4032}, {0xff, 0xff, 0xff, 0xff}}},
25
{{{ 0, 0, 39}, 0, { 1972, 4024}, {0xff, 0xff, 0xff, 0xff}}},
26
};
27
28
// 0x03005408 - 0x030054A0
29
const Gfx butterfly_seg3_dl_03005408[] = {
30
gsDPPipeSync(),
31
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
32
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
33
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
34
gsDPLoadTextureBlock(butterfly_seg3_texture_030043A8, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 6, G_TX_NOLOD, G_TX_NOLOD),
35
gsSPVertex(butterfly_seg3_vertex_03004348, 6, 0),
36
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
37
gsSPTexture(0x8000, 0x8000, 1, G_TX_RENDERTILE + 1, G_OFF),
38
gsDPPipeSync(),
39
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
40
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
41
gsSPEndDisplayList(),
42
};
43
44
// 0x030054A0 - 0x03005538
45
const Gfx butterfly_seg3_dl_030054A0[] = {
46
gsDPPipeSync(),
47
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
48
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
49
gsSPTexture(0x8000, 0x8000, 0, G_TX_RENDERTILE, G_ON),
50
gsDPLoadTextureBlock(butterfly_seg3_texture_030043A8, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 6, G_TX_NOLOD, G_TX_NOLOD),
51
gsSPVertex(butterfly_seg3_vertex_030053A8, 6, 0),
52
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
53
gsSPTexture(0x8000, 0x8000, 1, G_TX_RENDERTILE + 1, G_OFF),
54
gsDPPipeSync(),
55
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
56
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
57
gsSPEndDisplayList(),
58
};
59
60