Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/levels/castle_inside/areas/2/6/model.inc.c
7862 views
1
// 0x0704A1B8 - 0x0704A1D0
2
static const Lights1 inside_castle_seg7_lights_0704A1B8 = gdSPDefLights1(
3
0x3d, 0x3d, 0x3f,
4
0xf5, 0xf5, 0xff, 0x28, 0x28, 0x28
5
);
6
7
// 0x0704A1D0 - 0x0704A290
8
static const Vtx inside_castle_seg7_vertex_0704A1D0[] = {
9
{{{ 4332, 1408, 3415}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
10
{{{ 4332, 2125, 2647}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
11
{{{ 4332, 1408, 2647}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
12
{{{ 4332, 2125, 3415}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
13
{{{ 4332, 1408, 1008}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
14
{{{ 4332, 2125, 240}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
15
{{{ 4332, 1408, 240}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
16
{{{ 4332, 2125, 1008}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
17
{{{ 4332, 1408, 2493}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
18
{{{ 4332, 2125, 1162}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
19
{{{ 4332, 1408, 1162}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
20
{{{ 4332, 2125, 2493}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}},
21
};
22
23
// 0x0704A290 - 0x0704A2E0
24
static const Gfx inside_castle_seg7_dl_0704A290[] = {
25
gsSPLight(&inside_castle_seg7_lights_0704A1B8.l, 1),
26
gsSPLight(&inside_castle_seg7_lights_0704A1B8.a, 2),
27
gsSPVertex(inside_castle_seg7_vertex_0704A1D0, 12, 0),
28
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
29
gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0),
30
gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0),
31
gsSPEndDisplayList(),
32
};
33
34
// 0x0704A2E0 - 0x0704A368
35
const Gfx inside_castle_seg7_dl_0704A2E0[] = {
36
gsDPPipeSync(),
37
gsSPSetGeometryMode(G_TEXTURE_GEN),
38
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
39
gsDPLoadTextureBlock(inside_castle_seg7_texture_0700A000, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
40
gsSPTexture(0x07C0, 0x07C0, 0, G_TX_RENDERTILE, G_ON),
41
gsSPDisplayList(inside_castle_seg7_dl_0704A290),
42
gsSPTexture(0x07C0, 0x07C0, 0, G_TX_RENDERTILE, G_OFF),
43
gsDPPipeSync(),
44
gsSPClearGeometryMode(G_TEXTURE_GEN),
45
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
46
gsSPEndDisplayList(),
47
};
48
49