sm64

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

model.inc.c (6419B)


      1 // 0x07013968 - 0x070139E8
      2 static const Vtx lll_seg7_vertex_07013968[] = {
      3     {{{  -767,    307,   -767}, 0, { -1198,  -2222}, {0x00, 0x7f, 0x00, 0xff}}},
      4     {{{  1152,    307,    384}, 0, {  4276,   1062}, {0x00, 0x7f, 0x00, 0xff}}},
      5     {{{  1152,    307,   -383}, 0, {  4276,  -1128}, {0x00, 0x7f, 0x00, 0xff}}},
      6     {{{   768,    307,    768}, 0, {  3180,   2156}, {0x00, 0x7f, 0x00, 0xff}}},
      7     {{{   768,    307,   -767}, 0, {  3180,  -2222}, {0x00, 0x7f, 0x00, 0xff}}},
      8     {{{ -1151,    307,    384}, 0, { -2294,   1062}, {0x00, 0x7f, 0x00, 0xff}}},
      9     {{{  -767,    307,    768}, 0, { -1198,   2156}, {0x00, 0x7f, 0x00, 0xff}}},
     10     {{{ -1151,    307,   -383}, 0, { -2294,  -1128}, {0x00, 0x7f, 0x00, 0xff}}},
     11 };
     12 
     13 // 0x070139E8 - 0x07013AD8
     14 static const Vtx lll_seg7_vertex_070139E8[] = {
     15     {{{  1152,      0,    384}, 0, {  2012,    990}, {0x59, 0x00, 0x59, 0xff}}},
     16     {{{  1152,    307,    384}, 0, {  2012,      0}, {0x59, 0x00, 0x59, 0xff}}},
     17     {{{   768,    307,    768}, 0, {  -394,      0}, {0x59, 0x00, 0x59, 0xff}}},
     18     {{{  -767,      0,   -767}, 0, {  7634,    990}, {0x00, 0x00, 0x81, 0xff}}},
     19     {{{  -767,    307,   -767}, 0, {  7634,      0}, {0x00, 0x00, 0x81, 0xff}}},
     20     {{{   768,    307,   -767}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     21     {{{   768,      0,   -767}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     22     {{{   768,      0,   -767}, 0, {  2376,    990}, {0x59, 0x00, 0xa7, 0xff}}},
     23     {{{   768,    307,   -767}, 0, {  2376,      0}, {0x59, 0x00, 0xa7, 0xff}}},
     24     {{{  1152,    307,   -383}, 0, {     0,      0}, {0x59, 0x00, 0xa7, 0xff}}},
     25     {{{  1152,      0,   -383}, 0, {     0,    990}, {0x59, 0x00, 0xa7, 0xff}}},
     26     {{{  1152,      0,   -383}, 0, {  3374,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     27     {{{  1152,    307,   -383}, 0, {  3374,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     28     {{{  1152,    307,    384}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     29     {{{  1152,      0,    384}, 0, {     0,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     30 };
     31 
     32 // 0x07013AD8 - 0x07013BC8
     33 static const Vtx lll_seg7_vertex_07013AD8[] = {
     34     {{{ -1151,      0,    384}, 0, {  3374,    990}, {0x81, 0x00, 0x00, 0xff}}},
     35     {{{ -1151,    307,   -383}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0xff}}},
     36     {{{ -1151,      0,   -383}, 0, {     0,    990}, {0x81, 0x00, 0x00, 0xff}}},
     37     {{{  1152,      0,    384}, 0, {  2012,    990}, {0x59, 0x00, 0x59, 0xff}}},
     38     {{{   768,    307,    768}, 0, {  -394,      0}, {0x59, 0x00, 0x59, 0xff}}},
     39     {{{   768,      0,    768}, 0, {  -394,    990}, {0x59, 0x00, 0x59, 0xff}}},
     40     {{{   768,      0,    768}, 0, {  7122,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     41     {{{  -767,    307,    768}, 0, {  -542,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     42     {{{  -767,      0,    768}, 0, {  -542,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     43     {{{   768,    307,    768}, 0, {  7122,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     44     {{{  -767,      0,    768}, 0, {  2012,    990}, {0xa7, 0x00, 0x59, 0xff}}},
     45     {{{  -767,    307,    768}, 0, {  2012,      0}, {0xa7, 0x00, 0x59, 0xff}}},
     46     {{{ -1151,    307,    384}, 0, {  -394,      0}, {0xa7, 0x00, 0x59, 0xff}}},
     47     {{{ -1151,      0,    384}, 0, {  -394,    990}, {0xa7, 0x00, 0x59, 0xff}}},
     48     {{{ -1151,    307,    384}, 0, {  3374,      0}, {0x81, 0x00, 0x00, 0xff}}},
     49 };
     50 
     51 // 0x07013BC8 - 0x07013C08
     52 static const Vtx lll_seg7_vertex_07013BC8[] = {
     53     {{{ -1151,      0,   -383}, 0, {  2376,    990}, {0xa7, 0x00, 0xa7, 0xff}}},
     54     {{{ -1151,    307,   -383}, 0, {  2376,      0}, {0xa7, 0x00, 0xa7, 0xff}}},
     55     {{{  -767,    307,   -767}, 0, {     0,      0}, {0xa7, 0x00, 0xa7, 0xff}}},
     56     {{{  -767,      0,   -767}, 0, {     0,    990}, {0xa7, 0x00, 0xa7, 0xff}}},
     57 };
     58 
     59 // 0x07013C08 - 0x07013C70
     60 static const Gfx lll_seg7_dl_07013C08[] = {
     61     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_0900A800),
     62     gsDPLoadSync(),
     63     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     64     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
     65     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
     66     gsSPVertex(lll_seg7_vertex_07013968, 8, 0),
     67     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     68     gsSP2Triangles( 0,  2,  4, 0x0,  0,  5,  6, 0x0),
     69     gsSP2Triangles( 0,  7,  5, 0x0,  0,  6,  3, 0x0),
     70     gsSPEndDisplayList(),
     71 };
     72 
     73 // 0x07013C70 - 0x07013D28
     74 static const Gfx lll_seg7_dl_07013C70[] = {
     75     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007800),
     76     gsDPLoadSync(),
     77     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     78     gsSPVertex(lll_seg7_vertex_070139E8, 15, 0),
     79     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     80     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
     81     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
     82     gsSP1Triangle(11, 13, 14, 0x0),
     83     gsSPVertex(lll_seg7_vertex_07013AD8, 15, 0),
     84     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     85     gsSP2Triangles( 6,  7,  8, 0x0,  6,  9,  7, 0x0),
     86     gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
     87     gsSP1Triangle( 0, 14,  1, 0x0),
     88     gsSPVertex(lll_seg7_vertex_07013BC8, 4, 0),
     89     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     90     gsSPEndDisplayList(),
     91 };
     92 
     93 // 0x07013D28 - 0x07013DB8
     94 const Gfx lll_seg7_dl_07013D28[] = {
     95     gsDPPipeSync(),
     96     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     97     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     98     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),
     99     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    100     gsDPTileSync(),
    101     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),
    102     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    103     gsSPDisplayList(lll_seg7_dl_07013C08),
    104     gsDPTileSync(),
    105     gsDPSetTile(G_IM_FMT_RGBA, 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),
    106     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    107     gsSPDisplayList(lll_seg7_dl_07013C70),
    108     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    109     gsDPPipeSync(),
    110     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    111     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    112     gsSPEndDisplayList(),
    113 };