sm64

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

model.inc.c (12549B)


      1 // 0x0700D700 - 0x0700D718
      2 static const Lights1 ttm_seg7_lights_0700D700 = gdSPDefLights1(
      3     0x7f, 0x7f, 0x7f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700D718 - 0x0700D730
      8 static const Lights1 ttm_seg7_lights_0700D718 = gdSPDefLights1(
      9     0x4c, 0x4c, 0x4c,
     10     0x99, 0x99, 0x99, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x0700D730 - 0x0700D748
     14 static const Lights1 ttm_seg7_lights_0700D730 = gdSPDefLights1(
     15     0x5d, 0x5d, 0x5d,
     16     0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28
     17 );
     18 
     19 // 0x0700D748 - 0x0700D848
     20 static const Vtx ttm_seg7_vertex_0700D748[] = {
     21     {{{   717,    227,   -204}, 0, {  5282,  -7594}, {0x00, 0x7f, 0x00, 0xff}}},
     22     {{{  1280,    227,   -511}, 0, {  6406,  -8208}, {0x00, 0x7f, 0x00, 0xff}}},
     23     {{{   717,    227,   -716}, 0, {  5282,  -8616}, {0x00, 0x7f, 0x00, 0xff}}},
     24     {{{   717,    227,   -716}, 0, {  5282,  -8616}, {0x12, 0x72, 0xcd, 0xff}}},
     25     {{{  1280,    227,   -511}, 0, {  6406,  -8208}, {0x12, 0x72, 0xcd, 0xff}}},
     26     {{{   871,    -28,  -1230}, 0, {  5590,  -9644}, {0x12, 0x72, 0xcd, 0xff}}},
     27     {{{   973,    227,      0}, 0, {  5794,  -7186}, {0x00, 0x7f, 0x00, 0xff}}},
     28     {{{   614,    126,    303}, 0, {  5078,  -6580}, {0xf9, 0x7a, 0x20, 0xff}}},
     29     {{{  1015,    127,    386}, 0, {  5878,  -6416}, {0xf9, 0x7a, 0x20, 0xff}}},
     30     {{{   973,    227,      0}, 0, {  5794,  -7186}, {0xf9, 0x7a, 0x20, 0xff}}},
     31     {{{   614,    126,    303}, 0, {  5078,  -6580}, {0xf0, 0x7c, 0x15, 0xff}}},
     32     {{{   973,    227,      0}, 0, {  5794,  -7186}, {0xf0, 0x7c, 0x15, 0xff}}},
     33     {{{   717,    227,   -204}, 0, {  5282,  -7594}, {0xf0, 0x7c, 0x15, 0xff}}},
     34     {{{   614,    126,    303}, 0, {  5078,  -6580}, {0x00, 0x7e, 0x00, 0xff}}},
     35     {{{   681,    127,    442}, 0, {  5210,  -6304}, {0x00, 0x7e, 0x00, 0xff}}},
     36     {{{  1015,    127,    386}, 0, {  5878,  -6416}, {0x00, 0x7e, 0x00, 0xff}}},
     37 };
     38 
     39 // 0x0700D848 - 0x0700D938
     40 static const Vtx ttm_seg7_vertex_0700D848[] = {
     41     {{{  -537,    182,   1246}, 0, {  2778,  -4700}, {0x34, 0x73, 0x05, 0xff}}},
     42     {{{  -514,    182,   1042}, 0, {  2824,  -5106}, {0x34, 0x73, 0x05, 0xff}}},
     43     {{{  -694,    275,    816}, 0, {  2464,  -5558}, {0x34, 0x73, 0x05, 0xff}}},
     44     {{{  -944,    275,   1200}, 0, {  1964,  -4792}, {0x1a, 0x7b, 0x11, 0xff}}},
     45     {{{  -537,    182,   1246}, 0, {  2778,  -4700}, {0x1a, 0x7b, 0x11, 0xff}}},
     46     {{{  -694,    275,    816}, 0, {  2464,  -5558}, {0x1a, 0x7b, 0x11, 0xff}}},
     47     {{{  -514,    182,   1042}, 0, {  2824,  -5106}, {0x06, 0x7e, 0x00, 0xff}}},
     48     {{{  -537,    182,   1246}, 0, {  2778,  -4700}, {0x06, 0x7e, 0x00, 0xff}}},
     49     {{{   681,    127,    442}, 0, {  5210,  -6304}, {0x06, 0x7e, 0x00, 0xff}}},
     50     {{{  -514,    182,   1042}, 0, {  2824,  -5106}, {0x04, 0x7e, 0xfd, 0xff}}},
     51     {{{   681,    127,    442}, 0, {  5210,  -6304}, {0x04, 0x7e, 0xfd, 0xff}}},
     52     {{{   614,    126,    303}, 0, {  5078,  -6580}, {0x04, 0x7e, 0xfd, 0xff}}},
     53     {{{ -1125,    275,    973}, 0, {  1604,  -5244}, {0x00, 0x7f, 0x00, 0xff}}},
     54     {{{  -944,    275,   1200}, 0, {  1964,  -4792}, {0x00, 0x7f, 0x00, 0xff}}},
     55     {{{  -694,    275,    816}, 0, {  2464,  -5558}, {0x00, 0x7f, 0x00, 0xff}}},
     56 };
     57 
     58 // 0x0700D938 - 0x0700D9F8
     59 static const Vtx ttm_seg7_vertex_0700D938[] = {
     60     {{{ -1282,    275,    545}, 0, {  1290,  -6098}, {0xfe, 0x7e, 0x00, 0xff}}},
     61     {{{ -1125,    275,    973}, 0, {  1604,  -5244}, {0xfe, 0x7e, 0x00, 0xff}}},
     62     {{{  -875,    284,    336}, 0, {  2102,  -6516}, {0xfe, 0x7e, 0x00, 0xff}}},
     63     {{{  1015,   -180,    386}, 0, {  -286,   1978}, {0x7e, 0x00, 0xf3, 0xff}}},
     64     {{{   973,    227,      0}, 0, {  1302,    990}, {0x7e, 0x00, 0xf3, 0xff}}},
     65     {{{  1015,    127,    386}, 0, {     0,    990}, {0x7e, 0x00, 0xf3, 0xff}}},
     66     {{{   637,    -77,    350}, 0, {  -294,    348}, {0x87, 0xec, 0xe4, 0xff}}},
     67     {{{   614,    126,    303}, 0, {     0,    990}, {0x87, 0xec, 0xe4, 0xff}}},
     68     {{{   717,    227,   -204}, 0, {  1726,    990}, {0x87, 0xec, 0xe4, 0xff}}},
     69     {{{   637,    -77,    350}, 0, {  -294,    348}, {0x83, 0x00, 0xee, 0xff}}},
     70     {{{   717,    227,   -204}, 0, {  1726,    990}, {0x83, 0x00, 0xee, 0xff}}},
     71     {{{   717,   -284,   -204}, 0, {  1400,   -682}, {0x83, 0x00, 0xee, 0xff}}},
     72 };
     73 
     74 // 0x0700D9F8 - 0x0700DAE8
     75 static const Vtx ttm_seg7_vertex_0700D9F8[] = {
     76     {{{  -694,    275,    816}, 0, {  2142,  -6010}, {0x61, 0xaf, 0x0b, 0xff}}},
     77     {{{  -921,     28,    996}, 0, {  2116,  -5516}, {0x61, 0xaf, 0x0b, 0xff}}},
     78     {{{  -875,     28,    592}, 0, {  2732,  -5538}, {0x61, 0xaf, 0x0b, 0xff}}},
     79     {{{  -875,     28,    592}, 0, {  2732,  -5538}, {0x6f, 0xd6, 0xd6, 0xff}}},
     80     {{{  -875,    284,    336}, 0, {  3136,  -6062}, {0x6f, 0xd6, 0xd6, 0xff}}},
     81     {{{  -694,    275,    816}, 0, {  2142,  -6010}, {0x6f, 0xd6, 0xd6, 0xff}}},
     82     {{{  -921,     28,    996}, 0, {     0,    990}, {0xd5, 0xb2, 0x59, 0xff}}},
     83     {{{  -526,    -21,   1145}, 0, {  1384,    990}, {0xd5, 0xb2, 0x59, 0xff}}},
     84     {{{  -944,    275,   1200}, 0, {    36,    -48}, {0xd5, 0xb2, 0x59, 0xff}}},
     85     {{{  -944,    275,   1200}, 0, {    36,    -48}, {0xe7, 0xc8, 0x6e, 0xff}}},
     86     {{{  -526,    -21,   1145}, 0, {  1384,    990}, {0xe7, 0xc8, 0x6e, 0xff}}},
     87     {{{  -537,    182,   1246}, 0, {  1384,    232}, {0xe7, 0xc8, 0x6e, 0xff}}},
     88     {{{  1280,    227,   -511}, 0, {    32,   -648}, {0x51, 0xa0, 0xf5, 0xff}}},
     89     {{{   717,   -284,   -204}, 0, {     0,    990}, {0x51, 0xa0, 0xf5, 0xff}}},
     90     {{{   871,    -28,  -1230}, 0, {  1712,   -240}, {0x51, 0xa0, 0xf5, 0xff}}},
     91 };
     92 
     93 // 0x0700DAE8 - 0x0700DBD8
     94 static const Vtx ttm_seg7_vertex_0700DAE8[] = {
     95     {{{   717,   -284,   -204}, 0, {  1956,    990}, {0x5b, 0xbc, 0x37, 0xff}}},
     96     {{{  1280,    227,   -511}, 0, {  2566,  -1672}, {0x5b, 0xbc, 0x37, 0xff}}},
     97     {{{   973,    227,      0}, 0, {   848,   -692}, {0x5b, 0xbc, 0x37, 0xff}}},
     98     {{{  -526,    -21,   1145}, 0, {   408,   -356}, {0x17, 0xaa, 0xa7, 0xff}}},
     99     {{{  -921,     28,    996}, 0, {     0,    990}, {0x17, 0xaa, 0xa7, 0xff}}},
    100     {{{  -694,    275,    816}, 0, {  1234,    990}, {0x17, 0xaa, 0xa7, 0xff}}},
    101     {{{  -921,     28,    996}, 0, {     0,    990}, {0xab, 0xc0, 0x44, 0xff}}},
    102     {{{  -944,    275,   1200}, 0, {  -106,    314}, {0xab, 0xc0, 0x44, 0xff}}},
    103     {{{ -1125,    275,    973}, 0, {  -706,   1064}, {0xab, 0xc0, 0x44, 0xff}}},
    104     {{{  -921,     28,    996}, 0, {     0,    990}, {0xa1, 0xb5, 0x23, 0xff}}},
    105     {{{ -1125,    275,    973}, 0, {  -706,   1064}, {0xa1, 0xb5, 0x23, 0xff}}},
    106     {{{ -1282,    275,    545}, 0, { -1230,   2488}, {0xa1, 0xb5, 0x23, 0xff}}},
    107     {{{  -694,    275,    816}, 0, {     0,    990}, {0x51, 0xd1, 0xac, 0xff}}},
    108     {{{  -514,    182,   1042}, 0, {   980,    990}, {0x51, 0xd1, 0xac, 0xff}}},
    109     {{{  -526,    -21,   1145}, 0, {  1420,    368}, {0x51, 0xd1, 0xac, 0xff}}},
    110 };
    111 
    112 // 0x0700DBD8 - 0x0700DCC8
    113 static const Vtx ttm_seg7_vertex_0700DBD8[] = {
    114     {{{   614,    126,    303}, 0, {  4462,    990}, {0xbc, 0xe1, 0x9a, 0xff}}},
    115     {{{   637,    -77,    350}, 0, {  4466,    288}, {0xbc, 0xe1, 0x9a, 0xff}}},
    116     {{{  -514,    182,   1042}, 0, {     0,    990}, {0xbc, 0xe1, 0x9a, 0xff}}},
    117     {{{   637,    -77,    350}, 0, {  4466,    288}, {0xbc, 0xd3, 0xa0, 0xff}}},
    118     {{{  -526,    -21,   1145}, 0, {  -222,    258}, {0xbc, 0xd3, 0xa0, 0xff}}},
    119     {{{  -514,    182,   1042}, 0, {     0,    990}, {0xbc, 0xd3, 0xa0, 0xff}}},
    120     {{{  -526,    -21,   1145}, 0, {     0,    990}, {0x3f, 0xd2, 0x63, 0xff}}},
    121     {{{   681,    127,    442}, 0, {  4582,    232}, {0x3f, 0xd2, 0x63, 0xff}}},
    122     {{{  -537,    182,   1246}, 0, {  -278,    276}, {0x3f, 0xd2, 0x63, 0xff}}},
    123     {{{   973,    227,      0}, 0, {     0,   2896}, {0xf1, 0xa9, 0xa6, 0xff}}},
    124     {{{  1015,   -180,    386}, 0, {  1186,   1472}, {0xf1, 0xa9, 0xa6, 0xff}}},
    125     {{{   637,    -77,    350}, 0, {     0,    990}, {0xf1, 0xa9, 0xa6, 0xff}}},
    126     {{{   717,   -284,   -204}, 0, {  1956,    990}, {0x64, 0xbe, 0x27, 0xff}}},
    127     {{{   973,    227,      0}, 0, {   848,   -692}, {0x64, 0xbe, 0x27, 0xff}}},
    128     {{{   637,    -77,    350}, 0, {     0,    990}, {0x64, 0xbe, 0x27, 0xff}}},
    129 };
    130 
    131 // 0x0700DCC8 - 0x0700DD28
    132 static const Vtx ttm_seg7_vertex_0700DCC8[] = {
    133     {{{  -921,     28,    996}, 0, {     0,    990}, {0xbf, 0x94, 0xf9, 0xff}}},
    134     {{{ -1282,    275,    545}, 0, { -1230,   2488}, {0xbf, 0x94, 0xf9, 0xff}}},
    135     {{{  -875,     28,    592}, 0, {   120,   2334}, {0xbf, 0x94, 0xf9, 0xff}}},
    136     {{{  -526,    -21,   1145}, 0, {     0,    990}, {0x3e, 0xc8, 0x5f, 0xff}}},
    137     {{{   637,    -77,    350}, 0, {  4660,    990}, {0x3e, 0xc8, 0x5f, 0xff}}},
    138     {{{   681,    127,    442}, 0, {  4582,    232}, {0x3e, 0xc8, 0x5f, 0xff}}},
    139 };
    140 
    141 // 0x0700DD28 - 0x0700DD88
    142 static const Vtx ttm_seg7_vertex_0700DD28[] = {
    143     {{{   681,    127,    442}, 0, {  4582,    232}, {0xe9, 0xd2, 0x73, 0xff}}},
    144     {{{   637,    -77,    350}, 0, {  4660,    990}, {0xe9, 0xd2, 0x73, 0xff}}},
    145     {{{  1015,   -180,    386}, 0, {  5644,    902}, {0xe9, 0xd2, 0x73, 0xff}}},
    146     {{{  1015,   -180,    386}, 0, {  5644,    902}, {0x15, 0x00, 0x7d, 0xff}}},
    147     {{{  1015,    127,    386}, 0, {  5604,    -14}, {0x15, 0x00, 0x7d, 0xff}}},
    148     {{{   681,    127,    442}, 0, {  4582,    232}, {0x15, 0x00, 0x7d, 0xff}}},
    149 };
    150 
    151 // 0x0700DD88 - 0x0700DDB8
    152 static const Vtx ttm_seg7_vertex_0700DD88[] = {
    153     {{{ -1125,    275,    973}, 0, {  1604,  -5244}, {0x00, 0x7e, 0x02, 0xff}}},
    154     {{{  -694,    275,    816}, 0, {  2464,  -5558}, {0x00, 0x7e, 0x02, 0xff}}},
    155     {{{  -875,    284,    336}, 0, {  2102,  -6516}, {0x00, 0x7e, 0x02, 0xff}}},
    156 };
    157 
    158 // 0x0700DDB8 - 0x0700DF78
    159 static const Gfx ttm_seg7_dl_0700DDB8[] = {
    160     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000),
    161     gsDPLoadSync(),
    162     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    163     gsSPLight(&ttm_seg7_lights_0700D700.l, 1),
    164     gsSPLight(&ttm_seg7_lights_0700D700.a, 2),
    165     gsSPVertex(ttm_seg7_vertex_0700D748, 16, 0),
    166     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    167     gsSP2Triangles( 0,  6,  1, 0x0,  7,  8,  9, 0x0),
    168     gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
    169     gsSPVertex(ttm_seg7_vertex_0700D848, 15, 0),
    170     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    171     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    172     gsSP1Triangle(12, 13, 14, 0x0),
    173     gsSPVertex(ttm_seg7_vertex_0700D938, 12, 0),
    174     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    175     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    176     gsSPLight(&ttm_seg7_lights_0700D718.l, 1),
    177     gsSPLight(&ttm_seg7_lights_0700D718.a, 2),
    178     gsSPVertex(ttm_seg7_vertex_0700D9F8, 15, 0),
    179     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    180     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    181     gsSP1Triangle(12, 13, 14, 0x0),
    182     gsSPVertex(ttm_seg7_vertex_0700DAE8, 15, 0),
    183     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    184     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    185     gsSP1Triangle(12, 13, 14, 0x0),
    186     gsSPVertex(ttm_seg7_vertex_0700DBD8, 15, 0),
    187     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    188     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    189     gsSP1Triangle(12, 13, 14, 0x0),
    190     gsSPVertex(ttm_seg7_vertex_0700DCC8, 6, 0),
    191     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    192     gsSPLight(&ttm_seg7_lights_0700D730.l, 1),
    193     gsSPLight(&ttm_seg7_lights_0700D730.a, 2),
    194     gsSPVertex(ttm_seg7_vertex_0700DD28, 6, 0),
    195     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    196     gsSPLight(&ttm_seg7_lights_0700D700.l, 1),
    197     gsSPLight(&ttm_seg7_lights_0700D700.a, 2),
    198     gsSPVertex(ttm_seg7_vertex_0700DD88, 3, 0),
    199     gsSP1Triangle( 0,  1,  2, 0x0),
    200     gsSPEndDisplayList(),
    201 };
    202 
    203 // 0x0700DF78 - 0x0700DFE8
    204 const Gfx ttm_seg7_dl_0700DF78[] = {
    205     gsDPPipeSync(),
    206     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    207     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    208     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),
    209     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    210     gsDPTileSync(),
    211     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),
    212     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    213     gsSPDisplayList(ttm_seg7_dl_0700DDB8),
    214     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    215     gsDPPipeSync(),
    216     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    217     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    218     gsSPEndDisplayList(),
    219 };