sm64

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

model.inc.c (14078B)


      1 // 0x07013DB8 - 0x07013EA8
      2 static const Vtx lll_seg7_vertex_07013DB8[] = {
      3     {{{   256,      0,   1024}, 0, {   990,    990}, {0xa7, 0x00, 0xa7, 0xff}}},
      4     {{{   512,    154,    768}, 0, { -1416,      0}, {0xa7, 0x00, 0xa7, 0xff}}},
      5     {{{   512,      0,    768}, 0, { -1416,    990}, {0xa7, 0x00, 0xa7, 0xff}}},
      6     {{{   512,      0,   1280}, 0, {  1454,    990}, {0x0b, 0x00, 0x7e, 0xff}}},
      7     {{{   512,    154,   1280}, 0, {  1454,      0}, {0x0b, 0x00, 0x7e, 0xff}}},
      8     {{{  -895,    154,   1408}, 0, { -6162,      0}, {0x0b, 0x00, 0x7e, 0xff}}},
      9     {{{  -895,      0,   1408}, 0, { -6162,    990}, {0x0b, 0x00, 0x7e, 0xff}}},
     10     {{{  -895,      0,   1408}, 0, {  3034,    990}, {0x81, 0x00, 0x00, 0xff}}},
     11     {{{  -895,    154,   1408}, 0, {  3034,      0}, {0x81, 0x00, 0x00, 0xff}}},
     12     {{{  -895,    154,   1024}, 0, {  -370,      0}, {0x81, 0x00, 0x00, 0xff}}},
     13     {{{  -895,      0,   1024}, 0, {  -370,    990}, {0x81, 0x00, 0x00, 0xff}}},
     14     {{{  -895,      0,   1024}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
     15     {{{   256,    154,   1024}, 0, { -5150,      0}, {0x00, 0x00, 0x81, 0xff}}},
     16     {{{   256,      0,   1024}, 0, { -5150,    990}, {0x00, 0x00, 0x81, 0xff}}},
     17     {{{  -895,    154,   1024}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
     18 };
     19 
     20 // 0x07013EA8 - 0x07013F98
     21 static const Vtx lll_seg7_vertex_07013EA8[] = {
     22     {{{  -127,      0,    640}, 0, {   990,    990}, {0x88, 0x00, 0x28, 0xff}}},
     23     {{{  -383,    154,   -127}, 0, { -6626,      0}, {0x88, 0x00, 0x28, 0xff}}},
     24     {{{  -383,      0,   -127}, 0, { -6626,    990}, {0x88, 0x00, 0x28, 0xff}}},
     25     {{{   256,      0,   1024}, 0, {   990,    990}, {0xa7, 0x00, 0xa7, 0xff}}},
     26     {{{   256,    154,   1024}, 0, {   990,      0}, {0xa7, 0x00, 0xa7, 0xff}}},
     27     {{{   512,    154,    768}, 0, { -1416,      0}, {0xa7, 0x00, 0xa7, 0xff}}},
     28     {{{   512,      0,    768}, 0, {   990,    990}, {0xc8, 0x00, 0x71, 0xff}}},
     29     {{{   512,    154,    768}, 0, {   990,      0}, {0xc8, 0x00, 0x71, 0xff}}},
     30     {{{   256,    154,    640}, 0, { -1416,      0}, {0xc8, 0x00, 0x71, 0xff}}},
     31     {{{   256,      0,    640}, 0, { -1416,    990}, {0xc8, 0x00, 0x71, 0xff}}},
     32     {{{   256,      0,    640}, 0, {  1330,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     33     {{{   256,    154,    640}, 0, {  1330,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     34     {{{  -127,    154,    640}, 0, { -2074,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     35     {{{  -127,      0,    640}, 0, { -2074,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     36     {{{  -127,    154,    640}, 0, {   990,      0}, {0x88, 0x00, 0x28, 0xff}}},
     37 };
     38 
     39 // 0x07013F98 - 0x07014088
     40 static const Vtx lll_seg7_vertex_07013F98[] = {
     41     {{{   256,      0,   -895}, 0, {  7122,    990}, {0xec, 0x00, 0x7d, 0xff}}},
     42     {{{  -511,    154,  -1023}, 0, {    98,      0}, {0xec, 0x00, 0x7d, 0xff}}},
     43     {{{  -511,      0,  -1023}, 0, {    98,    990}, {0xec, 0x00, 0x7d, 0xff}}},
     44     {{{  -383,      0,   -127}, 0, {   990,    990}, {0x81, 0x00, 0x00, 0xff}}},
     45     {{{  -383,    154,   -511}, 0, { -2414,      0}, {0x81, 0x00, 0x00, 0xff}}},
     46     {{{  -383,      0,   -511}, 0, { -2414,    990}, {0x81, 0x00, 0x00, 0xff}}},
     47     {{{  -383,    154,   -127}, 0, {   990,      0}, {0x81, 0x00, 0x00, 0xff}}},
     48     {{{  -383,      0,   -511}, 0, {  7122,    990}, {0xe8, 0x00, 0x84, 0xff}}},
     49     {{{  -383,    154,   -511}, 0, {  7122,      0}, {0xe8, 0x00, 0x84, 0xff}}},
     50     {{{   256,    154,   -639}, 0, {    98,      0}, {0xe8, 0x00, 0x84, 0xff}}},
     51     {{{   256,      0,   -639}, 0, {    98,    990}, {0xe8, 0x00, 0x84, 0xff}}},
     52     {{{   256,      0,   -639}, 0, {   990,    990}, {0x81, 0x00, 0x00, 0xff}}},
     53     {{{   256,    154,   -895}, 0, {  -712,      0}, {0x81, 0x00, 0x00, 0xff}}},
     54     {{{   256,      0,   -895}, 0, {  -712,    990}, {0x81, 0x00, 0x00, 0xff}}},
     55     {{{   256,    154,   -639}, 0, {   990,      0}, {0x81, 0x00, 0x00, 0xff}}},
     56 };
     57 
     58 // 0x07014088 - 0x07014178
     59 static const Vtx lll_seg7_vertex_07014088[] = {
     60     {{{  -895,      0,  -1407}, 0, {   650,    990}, {0x00, 0x00, 0x81, 0xff}}},
     61     {{{  -639,    154,  -1407}, 0, { -1052,      0}, {0x00, 0x00, 0x81, 0xff}}},
     62     {{{  -639,      0,  -1407}, 0, { -1052,    990}, {0x00, 0x00, 0x81, 0xff}}},
     63     {{{   256,      0,   -895}, 0, {  7122,    990}, {0xec, 0x00, 0x7d, 0xff}}},
     64     {{{   256,    154,   -895}, 0, {  7122,      0}, {0xec, 0x00, 0x7d, 0xff}}},
     65     {{{  -511,    154,  -1023}, 0, {    98,      0}, {0xec, 0x00, 0x7d, 0xff}}},
     66     {{{  -511,      0,  -1023}, 0, {  5078,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     67     {{{  -511,    154,  -1023}, 0, {  5078,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     68     {{{  -895,    154,  -1023}, 0, {     0,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     69     {{{  -895,      0,  -1023}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     70     {{{  -895,      0,  -1023}, 0, {   990,    990}, {0x81, 0x00, 0x00, 0xff}}},
     71     {{{  -895,    154,  -1407}, 0, { -2414,      0}, {0x81, 0x00, 0x00, 0xff}}},
     72     {{{  -895,      0,  -1407}, 0, { -2414,    990}, {0x81, 0x00, 0x00, 0xff}}},
     73     {{{  -895,    154,  -1023}, 0, {   990,      0}, {0x81, 0x00, 0x00, 0xff}}},
     74     {{{  -895,    154,  -1407}, 0, {   650,      0}, {0x00, 0x00, 0x81, 0xff}}},
     75 };
     76 
     77 // 0x07014178 - 0x07014278
     78 static const Vtx lll_seg7_vertex_07014178[] = {
     79     {{{  -639,      0,  -1407}, 0, {  1750,    990}, {0x24, 0x00, 0x87, 0xff}}},
     80     {{{  -639,    154,  -1407}, 0, {  1750,      0}, {0x24, 0x00, 0x87, 0xff}}},
     81     {{{   640,    154,  -1023}, 0, {-12294,      0}, {0x24, 0x00, 0x87, 0xff}}},
     82     {{{   640,      0,  -1023}, 0, {-12294,    990}, {0x24, 0x00, 0x87, 0xff}}},
     83     {{{   640,      0,  -1023}, 0, {   990,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     84     {{{   640,    154,  -1023}, 0, {   990,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     85     {{{   640,    154,   -511}, 0, { -4118,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     86     {{{   640,      0,   -511}, 0, { -4118,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     87     {{{   640,      0,   -511}, 0, {   860,    990}, {0x2f, 0x00, 0x75, 0xff}}},
     88     {{{   640,    154,   -511}, 0, {   860,      0}, {0x2f, 0x00, 0x75, 0xff}}},
     89     {{{     0,    154,   -255}, 0, { -6162,      0}, {0x2f, 0x00, 0x75, 0xff}}},
     90     {{{     0,      0,   -255}, 0, { -6162,    990}, {0x2f, 0x00, 0x75, 0xff}}},
     91     {{{     0,      0,   -255}, 0, {  1672,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     92     {{{     0,    154,   -255}, 0, {  1672,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     93     {{{     0,    154,   -127}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     94     {{{     0,      0,   -127}, 0, {     0,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     95 };
     96 
     97 // 0x07014278 - 0x07014378
     98 static const Vtx lll_seg7_vertex_07014278[] = {
     99     {{{     0,      0,   -127}, 0, {  3776,    990}, {0x78, 0x00, 0xd8, 0xff}}},
    100     {{{     0,    154,   -127}, 0, {  3776,      0}, {0x78, 0x00, 0xd8, 0xff}}},
    101     {{{   128,    154,    256}, 0, {     0,      0}, {0x78, 0x00, 0xd8, 0xff}}},
    102     {{{   128,      0,    256}, 0, {     0,    990}, {0x78, 0x00, 0xd8, 0xff}}},
    103     {{{   128,      0,    256}, 0, {  3374,    990}, {0x00, 0x00, 0x81, 0xff}}},
    104     {{{   512,    154,    256}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
    105     {{{   512,      0,    256}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
    106     {{{   128,    154,    256}, 0, {  3374,      0}, {0x00, 0x00, 0x81, 0xff}}},
    107     {{{   512,      0,    256}, 0, {  1062,    990}, {0x65, 0x00, 0xb4, 0xff}}},
    108     {{{   512,    154,    256}, 0, {  1062,      0}, {0x65, 0x00, 0xb4, 0xff}}},
    109     {{{   896,    154,    768}, 0, { -6162,      0}, {0x65, 0x00, 0xb4, 0xff}}},
    110     {{{   896,      0,    768}, 0, { -6162,    990}, {0x65, 0x00, 0xb4, 0xff}}},
    111     {{{   896,      0,    768}, 0, {  1062,    990}, {0x65, 0x00, 0x4c, 0xff}}},
    112     {{{   896,    154,    768}, 0, {  1062,      0}, {0x65, 0x00, 0x4c, 0xff}}},
    113     {{{   512,    154,   1280}, 0, { -6162,      0}, {0x65, 0x00, 0x4c, 0xff}}},
    114     {{{   512,      0,   1280}, 0, { -6162,    990}, {0x65, 0x00, 0x4c, 0xff}}},
    115 };
    116 
    117 // 0x07014378 - 0x07014478
    118 static const Vtx lll_seg7_vertex_07014378[] = {
    119     {{{  -383,    154,   -127}, 0, { -1052,  -4120}, {0x00, 0x7f, 0x00, 0xff}}},
    120     {{{   256,    154,    640}, 0, { -3608,  -7186}, {0x00, 0x7f, 0x00, 0xff}}},
    121     {{{   512,    154,    768}, 0, { -4630,  -7696}, {0x00, 0x7f, 0x00, 0xff}}},
    122     {{{   640,    154,  -1023}, 0, { -5140,   -542}, {0x00, 0x7f, 0x00, 0xff}}},
    123     {{{  -639,    154,  -1407}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
    124     {{{   256,    154,   -895}, 0, { -3606,  -1054}, {0x00, 0x7f, 0x00, 0xff}}},
    125     {{{  -511,    154,  -1023}, 0, {  -542,   -542}, {0x00, 0x7f, 0x00, 0xff}}},
    126     {{{  -895,    154,  -1023}, 0, {   990,   -542}, {0x00, 0x7f, 0x00, 0xff}}},
    127     {{{  -895,    154,  -1407}, 0, {   990,    990}, {0x00, 0x7f, 0x00, 0xff}}},
    128     {{{   256,    154,   -639}, 0, { -3606,  -2076}, {0x00, 0x7f, 0x00, 0xff}}},
    129     {{{     0,    154,   -255}, 0, { -2586,  -3608}, {0x00, 0x7f, 0x00, 0xff}}},
    130     {{{  -383,    154,   -511}, 0, { -1052,  -2586}, {0x00, 0x7f, 0x00, 0xff}}},
    131     {{{   128,    154,    256}, 0, { -3096,  -5652}, {0x00, 0x7f, 0x00, 0xff}}},
    132     {{{     0,    154,   -127}, 0, { -2586,  -4120}, {0x00, 0x7f, 0x00, 0xff}}},
    133     {{{  -127,    154,    640}, 0, { -2074,  -7186}, {0x00, 0x7f, 0x00, 0xff}}},
    134     {{{   640,    154,   -511}, 0, { -5140,  -2586}, {0x00, 0x7f, 0x00, 0xff}}},
    135 };
    136 
    137 // 0x07014478 - 0x070144F8
    138 static const Vtx lll_seg7_vertex_07014478[] = {
    139     {{{   512,    154,    768}, 0, { -4630,  -7696}, {0x00, 0x7f, 0x00, 0xff}}},
    140     {{{   256,    154,   1024}, 0, { -3608,  -8718}, {0x00, 0x7f, 0x00, 0xff}}},
    141     {{{   896,    154,    768}, 0, { -6162,  -7696}, {0x00, 0x7f, 0x00, 0xff}}},
    142     {{{   128,    154,    256}, 0, { -3096,  -5652}, {0x00, 0x7f, 0x00, 0xff}}},
    143     {{{   512,    154,   1280}, 0, { -4630,  -9740}, {0x00, 0x7f, 0x00, 0xff}}},
    144     {{{  -895,    154,   1408}, 0, {   990, -10252}, {0x00, 0x7f, 0x00, 0xff}}},
    145     {{{  -895,    154,   1024}, 0, {   990,  -8718}, {0x00, 0x7f, 0x00, 0xff}}},
    146     {{{   512,    154,    256}, 0, { -4630,  -5652}, {0x00, 0x7f, 0x00, 0xff}}},
    147 };
    148 
    149 // 0x070144F8 - 0x070146B8
    150 static const Gfx lll_seg7_dl_070144F8[] = {
    151     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007800),
    152     gsDPLoadSync(),
    153     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    154     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
    155     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
    156     gsSPVertex(lll_seg7_vertex_07013DB8, 15, 0),
    157     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    158     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
    159     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
    160     gsSP1Triangle(11, 14, 12, 0x0),
    161     gsSPVertex(lll_seg7_vertex_07013EA8, 15, 0),
    162     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    163     gsSP2Triangles( 6,  7,  8, 0x0,  6,  8,  9, 0x0),
    164     gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
    165     gsSP1Triangle( 0, 14,  1, 0x0),
    166     gsSPVertex(lll_seg7_vertex_07013F98, 15, 0),
    167     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    168     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
    169     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
    170     gsSP1Triangle(11, 14, 12, 0x0),
    171     gsSPVertex(lll_seg7_vertex_07014088, 15, 0),
    172     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    173     gsSP2Triangles( 6,  7,  8, 0x0,  6,  8,  9, 0x0),
    174     gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
    175     gsSP1Triangle( 0, 14,  1, 0x0),
    176     gsSPVertex(lll_seg7_vertex_07014178, 16, 0),
    177     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    178     gsSP2Triangles( 4,  5,  6, 0x0,  4,  6,  7, 0x0),
    179     gsSP2Triangles( 8,  9, 10, 0x0,  8, 10, 11, 0x0),
    180     gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
    181     gsSPVertex(lll_seg7_vertex_07014278, 16, 0),
    182     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    183     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
    184     gsSP2Triangles( 8,  9, 10, 0x0,  8, 10, 11, 0x0),
    185     gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
    186     gsSPEndDisplayList(),
    187 };
    188 
    189 // 0x070146B8 - 0x07014788
    190 static const Gfx lll_seg7_dl_070146B8[] = {
    191     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09007000),
    192     gsDPLoadSync(),
    193     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    194     gsSPVertex(lll_seg7_vertex_07014378, 16, 0),
    195     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    196     gsSP2Triangles( 4,  6,  5, 0x0,  4,  7,  6, 0x0),
    197     gsSP2Triangles( 4,  8,  7, 0x0,  3,  5,  9, 0x0),
    198     gsSP2Triangles(10,  9,  0, 0x0, 10,  3,  9, 0x0),
    199     gsSP2Triangles( 9, 11,  0, 0x0,  0, 12, 13, 0x0),
    200     gsSP2Triangles( 0, 13, 10, 0x0,  0,  2, 12, 0x0),
    201     gsSP2Triangles( 0, 14,  1, 0x0, 10, 15,  3, 0x0),
    202     gsSPVertex(lll_seg7_vertex_07014478, 8, 0),
    203     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    204     gsSP2Triangles( 1,  4,  2, 0x0,  1,  5,  4, 0x0),
    205     gsSP2Triangles( 1,  6,  5, 0x0,  2,  7,  3, 0x0),
    206     gsSPEndDisplayList(),
    207 };
    208 
    209 // 0x07014788 - 0x07014818
    210 const Gfx lll_seg7_dl_07014788[] = {
    211     gsDPPipeSync(),
    212     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    213     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    214     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),
    215     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    216     gsDPTileSync(),
    217     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),
    218     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    219     gsSPDisplayList(lll_seg7_dl_070144F8),
    220     gsDPTileSync(),
    221     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),
    222     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    223     gsSPDisplayList(lll_seg7_dl_070146B8),
    224     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    225     gsDPPipeSync(),
    226     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    227     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    228     gsSPEndDisplayList(),
    229 };