Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/castle_inside/areas/1/22/model.inc.c
7862 views
1
static const Vtx dl_castle_aquarium_light_vertex_group_1[] = {
2
{{{ 3385, 358, -1631}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
3
{{{ 3060, 307, -1305}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
4
{{{ 3385, 768, -1631}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
5
{{{ 3174, 307, -1279}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
6
{{{ 2355, 768, -1740}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
7
{{{ 2355, 307, -1279}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
8
{{{ 3174, 768, -1740}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
9
{{{ 3174, 307, -1689}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
10
{{{ 3174, 358, -1740}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
11
{{{ 2355, 358, -1740}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
12
{{{ 2355, 307, -1689}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
13
{{{ 3784, 307, -581}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
14
{{{ 4109, 768, -907}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
15
{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
16
{{{ 3349, 307, 1135}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
17
{{{ 4073, 307, 411}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
18
};
19
20
static const Vtx dl_castle_aquarium_light_vertex_group_2[] = {
21
{{{ 3385, 358, -1631}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
22
{{{ 3349, 307, -1595}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
23
{{{ 3060, 307, -1305}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
24
{{{ 4109, 768, -907}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
25
{{{ 3784, 307, -581}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
26
{{{ 4073, 307, -871}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
27
{{{ 4109, 358, -907}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
28
{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
29
{{{ 4073, 307, 411}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
30
{{{ 4109, 358, 447}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
31
{{{ 3784, 307, 121}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
32
{{{ 4109, 768, 447}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
33
{{{ 2355, 307, 1229}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
34
{{{ 2355, 358, 1280}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
35
{{{ 2355, 768, 1280}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
36
{{{ 3060, 307, 846}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
37
};
38
39
static const Vtx dl_castle_aquarium_light_vertex_group_3[] = {
40
{{{ 4109, 768, 447}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
41
{{{ 3060, 307, 846}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
42
{{{ 3385, 768, 1171}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
43
{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
44
{{{ 3349, 307, 1135}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
45
{{{ 3174, 307, 1229}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
46
{{{ 3174, 358, 1280}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
47
{{{ 2355, 358, 1280}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},
48
{{{ 3174, 307, 819}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
49
{{{ 2355, 307, 1229}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},
50
{{{ 3174, 768, 1280}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
51
{{{ 2355, 768, 1280}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},
52
{{{ 2355, 307, 819}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},
53
};
54
55
static const Gfx dl_castle_aquarium_light_model[] = {
56
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, texture_castle_light),
57
gsDPLoadSync(),
58
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
59
gsSPVertex(dl_castle_aquarium_light_vertex_group_1, 16, 0),
60
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
61
gsSP2Triangles( 3, 6, 4, 0x0, 7, 6, 3, 0x0),
62
gsSP2Triangles( 7, 8, 6, 0x0, 5, 4, 9, 0x0),
63
gsSP2Triangles( 5, 9, 10, 0x0, 10, 9, 8, 0x0),
64
gsSP2Triangles(10, 8, 7, 0x0, 2, 1, 11, 0x0),
65
gsSP2Triangles( 2, 11, 12, 0x0, 13, 14, 15, 0x0),
66
gsSPVertex(dl_castle_aquarium_light_vertex_group_2, 16, 0),
67
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
68
gsSP2Triangles( 3, 5, 6, 0x0, 6, 1, 0, 0x0),
69
gsSP2Triangles( 6, 5, 1, 0x0, 7, 8, 9, 0x0),
70
gsSP2Triangles( 9, 10, 11, 0x0, 9, 8, 10, 0x0),
71
gsSP2Triangles(12, 13, 14, 0x0, 11, 10, 15, 0x0),
72
gsSPVertex(dl_castle_aquarium_light_vertex_group_3, 13, 0),
73
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
74
gsSP2Triangles( 1, 4, 3, 0x0, 5, 6, 7, 0x0),
75
gsSP2Triangles( 8, 6, 5, 0x0, 5, 7, 9, 0x0),
76
gsSP2Triangles( 8, 10, 6, 0x0, 9, 11, 12, 0x0),
77
gsSP2Triangles(12, 10, 8, 0x0, 12, 11, 10, 0x0),
78
gsSPEndDisplayList(),
79
};
80
81
// 0x07038240 - 0x070382B0
82
const Gfx dl_castle_aquarium_light[] = {
83
gsDPPipeSync(),
84
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
85
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
86
gsDPSetTile(G_IM_FMT_IA, 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),
87
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
88
gsDPTileSync(),
89
gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
90
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
91
gsSPDisplayList(dl_castle_aquarium_light_model),
92
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
93
gsDPPipeSync(),
94
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
95
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
96
gsSPEndDisplayList(),
97
};
98
99