sm64

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

model.inc.c (12178B)


      1 // 0x07014C68 - 0x07014CE8
      2 static const Vtx lll_seg7_vertex_07014C68[] = {
      3     {{{ -1023,    307,   -383}, 0, {  6100,    990}, {0x00, 0x7f, 0x00, 0xff}}},
      4     {{{  1280,    307,    256}, 0, { -3096,  -1566}, {0x00, 0x7f, 0x00, 0xff}}},
      5     {{{  1280,    307,   -255}, 0, { -3096,    478}, {0x00, 0x7f, 0x00, 0xff}}},
      6     {{{  1024,    307,    384}, 0, { -2074,  -2076}, {0x00, 0x7f, 0x00, 0xff}}},
      7     {{{  1024,    307,   -383}, 0, { -2074,    990}, {0x00, 0x7f, 0x00, 0xff}}},
      8     {{{ -1279,    307,    256}, 0, {  7122,  -1564}, {0x00, 0x7f, 0x00, 0xff}}},
      9     {{{ -1023,    307,    384}, 0, {  6100,  -2076}, {0x00, 0x7f, 0x00, 0xff}}},
     10     {{{ -1279,    307,   -255}, 0, {  7122,    480}, {0x00, 0x7f, 0x00, 0xff}}},
     11 };
     12 
     13 // 0x07014CE8 - 0x07014DD8
     14 static const Vtx lll_seg7_vertex_07014CE8[] = {
     15     {{{ -1023,      0,    384}, 0, {   990,    990}, {0xc8, 0x00, 0x71, 0xff}}},
     16     {{{ -1279,    307,    256}, 0, {  -212,      0}, {0xc8, 0x00, 0x71, 0xff}}},
     17     {{{ -1279,      0,    256}, 0, {  -212,    990}, {0xc8, 0x00, 0x71, 0xff}}},
     18     {{{  1280,      0,   -255}, 0, {  1672,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     19     {{{  1280,    307,   -255}, 0, {  1672,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     20     {{{  1280,    307,    256}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     21     {{{  1280,      0,    256}, 0, {     0,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     22     {{{  1280,      0,    256}, 0, {  1172,    990}, {0x38, 0x00, 0x71, 0xff}}},
     23     {{{  1024,    307,    384}, 0, {     0,      0}, {0x38, 0x00, 0x71, 0xff}}},
     24     {{{  1024,      0,    384}, 0, {     0,    990}, {0x38, 0x00, 0x71, 0xff}}},
     25     {{{  1280,    307,    256}, 0, {  1172,      0}, {0x38, 0x00, 0x71, 0xff}}},
     26     {{{  1024,      0,    384}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     27     {{{  1024,    307,    384}, 0, {   990,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     28     {{{ -1023,    307,    384}, 0, { -4118,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     29     {{{ -1023,      0,    384}, 0, { -4118,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     30 };
     31 
     32 // 0x07014DD8 - 0x07014EC8
     33 static const Vtx lll_seg7_vertex_07014DD8[] = {
     34     {{{ -1023,      0,   -383}, 0, {  5078,    990}, {0x00, 0x00, 0x81, 0xff}}},
     35     {{{  1024,    307,   -383}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     36     {{{  1024,      0,   -383}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     37     {{{ -1023,      0,    384}, 0, {   990,    990}, {0xc8, 0x00, 0x71, 0xff}}},
     38     {{{ -1023,    307,    384}, 0, {   990,      0}, {0xc8, 0x00, 0x71, 0xff}}},
     39     {{{ -1279,    307,    256}, 0, {  -212,      0}, {0xc8, 0x00, 0x71, 0xff}}},
     40     {{{ -1279,      0,    256}, 0, {  1502,    990}, {0x81, 0x00, 0x00, 0xff}}},
     41     {{{ -1279,    307,    256}, 0, {  1502,      0}, {0x81, 0x00, 0x00, 0xff}}},
     42     {{{ -1279,    307,   -255}, 0, {  -200,      0}, {0x81, 0x00, 0x00, 0xff}}},
     43     {{{ -1279,      0,   -255}, 0, {  -200,    990}, {0x81, 0x00, 0x00, 0xff}}},
     44     {{{ -1279,      0,   -255}, 0, {   990,    990}, {0xc8, 0x00, 0x8f, 0xff}}},
     45     {{{ -1279,    307,   -255}, 0, {   990,      0}, {0xc8, 0x00, 0x8f, 0xff}}},
     46     {{{ -1023,    307,   -383}, 0, {  -212,      0}, {0xc8, 0x00, 0x8f, 0xff}}},
     47     {{{ -1023,      0,   -383}, 0, {  -212,    990}, {0xc8, 0x00, 0x8f, 0xff}}},
     48     {{{ -1023,    307,   -383}, 0, {  5078,      0}, {0x00, 0x00, 0x81, 0xff}}},
     49 };
     50 
     51 // 0x07014EC8 - 0x07014F08
     52 static const Vtx lll_seg7_vertex_07014EC8[] = {
     53     {{{  1024,      0,   -383}, 0, {  1172,    990}, {0x38, 0x00, 0x8f, 0xff}}},
     54     {{{  1024,    307,   -383}, 0, {  1172,      0}, {0x38, 0x00, 0x8f, 0xff}}},
     55     {{{  1280,    307,   -255}, 0, {     0,      0}, {0x38, 0x00, 0x8f, 0xff}}},
     56     {{{  1280,      0,   -255}, 0, {     0,    990}, {0x38, 0x00, 0x8f, 0xff}}},
     57 };
     58 
     59 // 0x07014F08 - 0x07014FE8
     60 static const Vtx lll_seg7_vertex_07014F08[] = {
     61     {{{ -1458,    410,    128}, 0, {   416,      0}, {0x00, 0x00, 0x81, 0xff}}},
     62     {{{ -1279,    307,    128}, 0, {     0,    224}, {0x00, 0x00, 0x81, 0xff}}},
     63     {{{ -1535,    307,    128}, 0, {   606,    224}, {0x00, 0x00, 0x81, 0xff}}},
     64     {{{ -1535,      0,    128}, 0, {   606,    990}, {0x00, 0x00, 0x81, 0xff}}},
     65     {{{ -1279,      0,    128}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     66     {{{ -1535,    307,   -255}, 0, {  2522,    224}, {0x00, 0x00, 0x7f, 0xff}}},
     67     {{{ -1535,      0,   -255}, 0, {  2522,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     68     {{{ -1279,      0,   -255}, 0, {  3162,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     69     {{{ -1279,    307,   -255}, 0, {  3162,    224}, {0x00, 0x00, 0x7f, 0xff}}},
     70     {{{ -1458,    410,   -255}, 0, {  2714,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     71     {{{ -1535,      0,    256}, 0, {   288,    734}, {0x81, 0x00, 0x00, 0xff}}},
     72     {{{ -1535,    307,    128}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0xff}}},
     73     {{{ -1535,      0,    128}, 0, {     0,    734}, {0x81, 0x00, 0x00, 0xff}}},
     74     {{{ -1535,    307,    256}, 0, {   288,      0}, {0x81, 0x00, 0x00, 0xff}}},
     75 };
     76 
     77 // 0x07014FE8 - 0x070150C8
     78 static const Vtx lll_seg7_vertex_07014FE8[] = {
     79     {{{ -1535,    307,    256}, 0, {  2522,    224}, {0x00, 0x00, 0x7f, 0xff}}},
     80     {{{ -1279,    307,    256}, 0, {  3162,    224}, {0x00, 0x00, 0x7f, 0xff}}},
     81     {{{ -1458,    410,    256}, 0, {  2714,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     82     {{{ -1535,      0,    256}, 0, {  2522,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     83     {{{ -1279,      0,    256}, 0, {  3162,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     84     {{{ -1279,      0,   -383}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     85     {{{ -1535,    307,   -383}, 0, {   606,    224}, {0x00, 0x00, 0x81, 0xff}}},
     86     {{{ -1458,    410,   -383}, 0, {   416,      0}, {0x00, 0x00, 0x81, 0xff}}},
     87     {{{ -1279,    307,   -383}, 0, {     0,    224}, {0x00, 0x00, 0x81, 0xff}}},
     88     {{{ -1535,      0,   -383}, 0, {   606,    990}, {0x00, 0x00, 0x81, 0xff}}},
     89     {{{ -1535,      0,   -255}, 0, {  -988,    734}, {0x81, 0x00, 0x00, 0xff}}},
     90     {{{ -1535,    307,   -255}, 0, {  -988,      0}, {0x81, 0x00, 0x00, 0xff}}},
     91     {{{ -1535,    307,   -383}, 0, { -1308,      0}, {0x81, 0x00, 0x00, 0xff}}},
     92     {{{ -1535,      0,   -383}, 0, { -1308,    734}, {0x81, 0x00, 0x00, 0xff}}},
     93 };
     94 
     95 // 0x070150C8 - 0x07015108
     96 static const Vtx lll_seg7_vertex_070150C8[] = {
     97     {{{ -1279,      0,   -255}, 0, {   564,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     98     {{{ -1279,      0,   -383}, 0, {   990,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     99     {{{ -1279,    307,   -383}, 0, {   990,      0}, {0x7f, 0x00, 0x00, 0xff}}},
    100     {{{ -1279,    307,   -255}, 0, {   564,      0}, {0x7f, 0x00, 0x00, 0xff}}},
    101 };
    102 
    103 // 0x07015108 - 0x07015208
    104 static const Vtx lll_seg7_vertex_07015108[] = {
    105     {{{ -1458,    410,   -383}, 0, { -1308,      0}, {0x9b, 0x4c, 0x00, 0xff}}},
    106     {{{ -1535,    307,   -383}, 0, { -1308,    288}, {0x9b, 0x4c, 0x00, 0xff}}},
    107     {{{ -1535,    307,   -255}, 0, {  -988,    288}, {0x9b, 0x4c, 0x00, 0xff}}},
    108     {{{ -1279,    307,    128}, 0, {  -286,    990}, {0x3f, 0x6e, 0x00, 0xff}}},
    109     {{{ -1458,    410,    128}, 0, {  -286,    476}, {0x3f, 0x6e, 0x00, 0xff}}},
    110     {{{ -1458,    410,    256}, 0, {  -604,    476}, {0x3f, 0x6e, 0x00, 0xff}}},
    111     {{{ -1279,    307,    256}, 0, {  -604,    990}, {0x3f, 0x6e, 0x00, 0xff}}},
    112     {{{ -1458,    410,    128}, 0, {     0,      0}, {0x9b, 0x4c, 0x00, 0xff}}},
    113     {{{ -1535,    307,    256}, 0, {   288,    288}, {0x9b, 0x4c, 0x00, 0xff}}},
    114     {{{ -1458,    410,    256}, 0, {   288,      0}, {0x9b, 0x4c, 0x00, 0xff}}},
    115     {{{ -1535,    307,    128}, 0, {     0,    288}, {0x9b, 0x4c, 0x00, 0xff}}},
    116     {{{ -1279,    307,   -383}, 0, {   990,    990}, {0x3f, 0x6e, 0x00, 0xff}}},
    117     {{{ -1458,    410,   -255}, 0, {   670,    476}, {0x3f, 0x6e, 0x00, 0xff}}},
    118     {{{ -1279,    307,   -255}, 0, {   670,    990}, {0x3f, 0x6e, 0x00, 0xff}}},
    119     {{{ -1458,    410,   -383}, 0, {   990,    476}, {0x3f, 0x6e, 0x00, 0xff}}},
    120     {{{ -1458,    410,   -255}, 0, {  -988,      0}, {0x9b, 0x4c, 0x00, 0xff}}},
    121 };
    122 
    123 // 0x07015208 - 0x07015270
    124 static const Gfx lll_seg7_dl_07015208[] = {
    125     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07004800),
    126     gsDPLoadSync(),
    127     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    128     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
    129     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
    130     gsSPVertex(lll_seg7_vertex_07014C68, 8, 0),
    131     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    132     gsSP2Triangles( 0,  2,  4, 0x0,  0,  5,  6, 0x0),
    133     gsSP2Triangles( 0,  7,  5, 0x0,  0,  6,  3, 0x0),
    134     gsSPEndDisplayList(),
    135 };
    136 
    137 // 0x07015270 - 0x07015328
    138 static const Gfx lll_seg7_dl_07015270[] = {
    139     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007800),
    140     gsDPLoadSync(),
    141     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    142     gsSPVertex(lll_seg7_vertex_07014CE8, 15, 0),
    143     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    144     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
    145     gsSP2Triangles( 7, 10,  8, 0x0, 11, 12, 13, 0x0),
    146     gsSP1Triangle(11, 13, 14, 0x0),
    147     gsSPVertex(lll_seg7_vertex_07014DD8, 15, 0),
    148     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    149     gsSP2Triangles( 6,  7,  8, 0x0,  6,  8,  9, 0x0),
    150     gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
    151     gsSP1Triangle( 0, 14,  1, 0x0),
    152     gsSPVertex(lll_seg7_vertex_07014EC8, 4, 0),
    153     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    154     gsSPEndDisplayList(),
    155 };
    156 
    157 // 0x07015328 - 0x070153F0
    158 static const Gfx lll_seg7_dl_07015328[] = {
    159     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006800),
    160     gsDPLoadSync(),
    161     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    162     gsSPVertex(lll_seg7_vertex_07014F08, 14, 0),
    163     gsSP2Triangles( 0,  1,  2, 0x0,  3,  1,  4, 0x0),
    164     gsSP2Triangles( 3,  2,  1, 0x0,  5,  6,  7, 0x0),
    165     gsSP2Triangles( 5,  7,  8, 0x0,  5,  8,  9, 0x0),
    166     gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
    167     gsSPVertex(lll_seg7_vertex_07014FE8, 14, 0),
    168     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  4, 0x0),
    169     gsSP2Triangles( 0,  4,  1, 0x0,  5,  6,  7, 0x0),
    170     gsSP2Triangles( 5,  7,  8, 0x0,  5,  9,  6, 0x0),
    171     gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
    172     gsSPVertex(lll_seg7_vertex_070150C8, 4, 0),
    173     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    174     gsSPEndDisplayList(),
    175 };
    176 
    177 // 0x070153F0 - 0x07015458
    178 static const Gfx lll_seg7_dl_070153F0[] = {
    179     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006000),
    180     gsDPLoadSync(),
    181     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    182     gsSPVertex(lll_seg7_vertex_07015108, 16, 0),
    183     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    184     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
    185     gsSP2Triangles( 7, 10,  8, 0x0, 11, 12, 13, 0x0),
    186     gsSP2Triangles(11, 14, 12, 0x0,  0,  2, 15, 0x0),
    187     gsSPEndDisplayList(),
    188 };
    189 
    190 // 0x07015458 - 0x070154F8
    191 const Gfx lll_seg7_dl_07015458[] = {
    192     gsDPPipeSync(),
    193     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    194     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    195     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),
    196     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    197     gsDPTileSync(),
    198     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),
    199     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    200     gsSPDisplayList(lll_seg7_dl_07015208),
    201     gsSPDisplayList(lll_seg7_dl_07015328),
    202     gsSPDisplayList(lll_seg7_dl_070153F0),
    203     gsDPTileSync(),
    204     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),
    205     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    206     gsSPDisplayList(lll_seg7_dl_07015270),
    207     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    208     gsDPPipeSync(),
    209     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    210     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    211     gsSPEndDisplayList(),
    212 };