sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

model.inc.c (5218B)


      1 // 0x07018708 - 0x07018808
      2 static const Vtx lll_seg7_vertex_07018708[] = {
      3     {{{  -165,      0,      0}, 0, {     0,    514}, {0x95, 0x1a, 0xc2, 0xff}}},
      4     {{{  -115,    205,      0}, 0, {   168,  -1014}, {0x95, 0x1a, 0xc2, 0xff}}},
      5     {{{   -57,    205,   -100}, 0, {  1098,  -1014}, {0x95, 0x1a, 0xc2, 0xff}}},
      6     {{{   -82,      0,   -143}, 0, {  1296,    514}, {0x95, 0x1a, 0xc2, 0xff}}},
      7     {{{   -57,    205,   -100}, 0, {  -496,   -838}, {0x00, 0x7f, 0x00, 0xff}}},
      8     {{{  -115,    205,      0}, 0, {  -960,      0}, {0x00, 0x7f, 0x00, 0xff}}},
      9     {{{   -57,    205,    101}, 0, {  -496,    774}, {0x00, 0x7f, 0x00, 0xff}}},
     10     {{{    58,    205,    101}, 0, {   434,    774}, {0x00, 0x7f, 0x00, 0xff}}},
     11     {{{   116,    205,      0}, 0, {   898,      0}, {0x00, 0x7f, 0x00, 0xff}}},
     12     {{{    58,    205,   -100}, 0, {   434,   -838}, {0x00, 0x7f, 0x00, 0xff}}},
     13     {{{   -82,      0,    144}, 0, {  1190,   1638}, {0x95, 0x1a, 0x3e, 0xff}}},
     14     {{{   -57,    205,    101}, 0, {   990,      0}, {0x95, 0x1a, 0x3e, 0xff}}},
     15     {{{  -165,      0,      0}, 0, {  -138,   1638}, {0x95, 0x1a, 0x3e, 0xff}}},
     16     {{{   -57,    205,    101}, 0, {   990,      0}, {0x95, 0x1a, 0x3d, 0xff}}},
     17     {{{  -115,    205,      0}, 0, {    60,      0}, {0x95, 0x1a, 0x3d, 0xff}}},
     18     {{{  -165,      0,      0}, 0, {  -138,   1638}, {0x95, 0x1a, 0x3d, 0xff}}},
     19 };
     20 
     21 // 0x07018808 - 0x07018908
     22 static const Vtx lll_seg7_vertex_07018808[] = {
     23     {{{   -82,      0,   -143}, 0, { -1358,    514}, {0x00, 0x1a, 0x84, 0xff}}},
     24     {{{   -57,    205,   -100}, 0, { -1160,  -1014}, {0x00, 0x1a, 0x84, 0xff}}},
     25     {{{    58,    205,   -100}, 0, {  -230,  -1014}, {0x00, 0x1a, 0x84, 0xff}}},
     26     {{{    83,      0,    144}, 0, {     0,    990}, {0x00, 0x1a, 0x7c, 0xff}}},
     27     {{{   -57,    205,    101}, 0, { -1160,   -682}, {0x00, 0x1a, 0x7c, 0xff}}},
     28     {{{   -82,      0,    144}, 0, { -1358,    990}, {0x00, 0x1a, 0x7c, 0xff}}},
     29     {{{    58,    205,    101}, 0, {  -230,   -682}, {0x00, 0x1a, 0x7c, 0xff}}},
     30     {{{   166,      0,      0}, 0, {  1296,    990}, {0x6b, 0x1a, 0x3d, 0xff}}},
     31     {{{   116,    205,      0}, 0, {  1098,   -682}, {0x6b, 0x1a, 0x3d, 0xff}}},
     32     {{{    58,    205,    101}, 0, {   168,   -682}, {0x6b, 0x1a, 0x3d, 0xff}}},
     33     {{{   166,      0,      0}, 0, {  1296,    990}, {0x6b, 0x1a, 0x3e, 0xff}}},
     34     {{{    58,    205,    101}, 0, {   168,   -682}, {0x6b, 0x1a, 0x3e, 0xff}}},
     35     {{{    83,      0,    144}, 0, {     0,    990}, {0x6b, 0x1a, 0x3e, 0xff}}},
     36     {{{    83,      0,   -143}, 0, {  -138,   1162}, {0x6b, 0x1a, 0xc2, 0xff}}},
     37     {{{    58,    205,   -100}, 0, {    60,   -364}, {0x6b, 0x1a, 0xc2, 0xff}}},
     38     {{{   116,    205,      0}, 0, {   990,   -364}, {0x6b, 0x1a, 0xc2, 0xff}}},
     39 };
     40 
     41 // 0x07018908 - 0x07018968
     42 static const Vtx lll_seg7_vertex_07018908[] = {
     43     {{{    83,      0,   -143}, 0, {  -138,   1162}, {0x6b, 0x1a, 0xc2, 0xff}}},
     44     {{{   116,    205,      0}, 0, {   990,   -364}, {0x6b, 0x1a, 0xc2, 0xff}}},
     45     {{{   166,      0,      0}, 0, {  1190,   1162}, {0x6b, 0x1a, 0xc2, 0xff}}},
     46     {{{   -82,      0,   -143}, 0, { -1358,    514}, {0x00, 0x1a, 0x84, 0xff}}},
     47     {{{    58,    205,   -100}, 0, {  -230,  -1014}, {0x00, 0x1a, 0x84, 0xff}}},
     48     {{{    83,      0,   -143}, 0, {     0,    514}, {0x00, 0x1a, 0x84, 0xff}}},
     49 };
     50 
     51 // 0x07018968 - 0x07018A30
     52 static const Gfx lll_seg7_dl_07018968[] = {
     53     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07004000),
     54     gsDPLoadSync(),
     55     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     56     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
     57     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
     58     gsSPVertex(lll_seg7_vertex_07018708, 16, 0),
     59     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     60     gsSP2Triangles( 4,  5,  6, 0x0,  4,  6,  7, 0x0),
     61     gsSP2Triangles( 4,  7,  8, 0x0,  4,  8,  9, 0x0),
     62     gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
     63     gsSPVertex(lll_seg7_vertex_07018808, 16, 0),
     64     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     65     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
     66     gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
     67     gsSPVertex(lll_seg7_vertex_07018908, 6, 0),
     68     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     69     gsSPEndDisplayList(),
     70 };
     71 
     72 // 0x07018A30 - 0x07018AA0
     73 const Gfx lll_seg7_dl_07018A30[] = {
     74     gsDPPipeSync(),
     75     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     76     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     77     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),
     78     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     79     gsDPTileSync(),
     80     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
     81     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     82     gsSPDisplayList(lll_seg7_dl_07018968),
     83     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     84     gsDPPipeSync(),
     85     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     86     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     87     gsSPEndDisplayList(),
     88 };