sm64

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

model.inc.c (9978B)


      1 // 0x07010AD8 - 0x07010AF0
      2 static const Lights1 ttm_seg7_lights_07010AD8 = gdSPDefLights1(
      3     0x4c, 0x4c, 0x4c,
      4     0x99, 0x99, 0x99, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07010AF0 - 0x07010B08
      8 static const Lights1 ttm_seg7_lights_07010AF0 = gdSPDefLights1(
      9     0x5d, 0x5d, 0x5d,
     10     0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x07010B08 - 0x07010B20
     14 static const Lights1 ttm_seg7_lights_07010B08 = gdSPDefLights1(
     15     0x7f, 0x7f, 0x7f,
     16     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
     17 );
     18 
     19 // 0x07010B20 - 0x07010C10
     20 static const Vtx ttm_seg7_vertex_07010B20[] = {
     21     {{{  -406,   -306,    375}, 0, {  2336,  -3000}, {0xd7, 0x8e, 0xde, 0xff}}},
     22     {{{  -205,   -306,    137}, 0, {  1666,  -2210}, {0xd7, 0x8e, 0xde, 0xff}}},
     23     {{{   -81,   -409,    330}, 0, {  1254,  -2852}, {0xd7, 0x8e, 0xde, 0xff}}},
     24     {{{   -81,   -409,    330}, 0, {  1254,  -2852}, {0xe3, 0x8f, 0x31, 0xff}}},
     25     {{{  -186,   -306,    506}, 0, {  1604,  -3436}, {0xe3, 0x8f, 0x31, 0xff}}},
     26     {{{  -406,   -306,    375}, 0, {  2336,  -3000}, {0xe3, 0x8f, 0x31, 0xff}}},
     27     {{{   -81,    205,    330}, 0, {   924,  -3514}, {0xc4, 0x97, 0xdc, 0xff}}},
     28     {{{  -188,    410,    -90}, 0, {  1278,  -2114}, {0xc4, 0x97, 0xdc, 0xff}}},
     29     {{{   180,    205,   -109}, 0, {    50,  -2052}, {0xc4, 0x97, 0xdc, 0xff}}},
     30     {{{   161,    410,   -477}, 0, {   112,   -824}, {0xc6, 0x9d, 0xcc, 0xff}}},
     31     {{{   180,    205,   -109}, 0, {    50,  -2052}, {0xc6, 0x9d, 0xcc, 0xff}}},
     32     {{{  -188,    410,    -90}, 0, {  1278,  -2114}, {0xc6, 0x9d, 0xcc, 0xff}}},
     33     {{{   180,    205,   -109}, 0, {    50,  -2052}, {0xf1, 0x92, 0xc4, 0xff}}},
     34     {{{   161,    410,   -477}, 0, {   112,   -824}, {0xf1, 0x92, 0xc4, 0xff}}},
     35     {{{   442,    410,   -549}, 0, {  -820,   -588}, {0xf1, 0x92, 0xc4, 0xff}}},
     36 };
     37 
     38 // 0x07010C10 - 0x07010C40
     39 static const Vtx ttm_seg7_vertex_07010C10[] = {
     40     {{{   337,   -204,   -373}, 0, {     0,  -1872}, {0x06, 0xac, 0xa2, 0xff}}},
     41     {{{   223,   -204,   -381}, 0, {   308,  -1736}, {0x06, 0xac, 0xa2, 0xff}}},
     42     {{{   390,   -101,   -461}, 0, {     0,  -2348}, {0x06, 0xac, 0xa2, 0xff}}},
     43 };
     44 
     45 // 0x07010C40 - 0x07010D30
     46 static const Vtx ttm_seg7_vertex_07010C40[] = {
     47     {{{   223,   -204,   -381}, 0, {  1194,  -4802}, {0xbe, 0xe5, 0x98, 0xff}}},
     48     {{{    56,   -101,   -302}, 0, {  1774,  -5142}, {0xbe, 0xe5, 0x98, 0xff}}},
     49     {{{   249,   -101,   -425}, 0, {  1028,  -5142}, {0xbe, 0xe5, 0x98, 0xff}}},
     50     {{{   223,   -204,   -381}, 0, {   308,  -1736}, {0xe3, 0xd6, 0x8c, 0xff}}},
     51     {{{   249,   -101,   -425}, 0, {   308,  -2076}, {0xe3, 0xd6, 0x8c, 0xff}}},
     52     {{{   390,   -101,   -461}, 0, {     0,  -2348}, {0xe3, 0xd6, 0x8c, 0xff}}},
     53     {{{   -29,   -306,    242}, 0, {     0,    990}, {0x2d, 0xa7, 0xb3, 0xff}}},
     54     {{{  -117,   -306,    190}, 0, {   308,    990}, {0x2d, 0xa7, 0xb3, 0xff}}},
     55     {{{   127,      0,    -21}, 0, {     0,   -428}, {0x2d, 0xa7, 0xb3, 0xff}}},
     56     {{{  -117,   -306,    190}, 0, {   308,    990}, {0x07, 0xb4, 0x9b, 0xff}}},
     57     {{{  -100,      0,    -38}, 0, {   650,   -238}, {0x07, 0xb4, 0x9b, 0xff}}},
     58     {{{   127,      0,    -21}, 0, {     0,   -428}, {0x07, 0xb4, 0x9b, 0xff}}},
     59     {{{   -81,   -409,    330}, 0, {  1254,  -2852}, {0x2e, 0xa7, 0xb3, 0xff}}},
     60     {{{  -205,   -306,    137}, 0, {  1666,  -2210}, {0x2e, 0xa7, 0xb3, 0xff}}},
     61     {{{   -29,   -306,    242}, 0, {  1080,  -2558}, {0x2e, 0xa7, 0xb3, 0xff}}},
     62 };
     63 
     64 // 0x07010D30 - 0x07010D60
     65 static const Vtx ttm_seg7_vertex_07010D30[] = {
     66     {{{  -100,      0,    -38}, 0, {  2762,  -5482}, {0x82, 0x00, 0xf7, 0xff}}},
     67     {{{  -117,   -306,    190}, 0, {  3334,  -4460}, {0x82, 0x00, 0xf7, 0xff}}},
     68     {{{  -117,      0,    190}, 0, {  3334,  -5482}, {0x82, 0x00, 0xf7, 0xff}}},
     69 };
     70 
     71 // 0x07010D60 - 0x07010DA0
     72 static const Vtx ttm_seg7_vertex_07010D60[] = {
     73     {{{   -29,      0,    242}, 0, {   650,   3032}, {0xc0, 0x00, 0x6d, 0xff}}},
     74     {{{  -117,   -306,    190}, 0, {   308,   4054}, {0xc0, 0x00, 0x6d, 0xff}}},
     75     {{{   -29,   -306,    242}, 0, {   650,   4054}, {0xc0, 0x00, 0x6d, 0xff}}},
     76     {{{  -117,      0,    190}, 0, {   308,   3032}, {0xc0, 0x00, 0x6d, 0xff}}},
     77 };
     78 
     79 // 0x07010DA0 - 0x07010E00
     80 static const Vtx ttm_seg7_vertex_07010DA0[] = {
     81     {{{   180,   -101,   -109}, 0, {  1962, -17424}, {0xfd, 0x8a, 0x2c, 0xff}}},
     82     {{{   223,   -204,   -381}, 0, {  2048, -17966}, {0xfd, 0x8a, 0x2c, 0xff}}},
     83     {{{   337,   -204,   -373}, 0, {  2276, -17950}, {0xfd, 0x8a, 0x2c, 0xff}}},
     84     {{{   180,   -101,   -109}, 0, {  1962, -17424}, {0xcc, 0x92, 0x21, 0xff}}},
     85     {{{    56,   -101,   -302}, 0, {  1716, -17808}, {0xcc, 0x92, 0x21, 0xff}}},
     86     {{{   223,   -204,   -381}, 0, {  2048, -17966}, {0xcc, 0x92, 0x21, 0xff}}},
     87 };
     88 
     89 // 0x07010E00 - 0x07010F00
     90 static const Vtx ttm_seg7_vertex_07010E00[] = {
     91     {{{   127,      0,    -21}, 0, {  1858, -17248}, {0x00, 0x7f, 0x00, 0xff}}},
     92     {{{  -117,      0,    190}, 0, {  1368, -16826}, {0x00, 0x7f, 0x00, 0xff}}},
     93     {{{   -29,      0,    242}, 0, {  1544, -16722}, {0x00, 0x7f, 0x00, 0xff}}},
     94     {{{  -406,   -306,    375}, 0, {   792, -16456}, {0x00, 0x7f, 0x00, 0xff}}},
     95     {{{  -186,   -306,    506}, 0, {  1230, -16194}, {0x00, 0x7f, 0x00, 0xff}}},
     96     {{{  -205,   -306,    137}, 0, {  1192, -16930}, {0x00, 0x7f, 0x00, 0xff}}},
     97     {{{   161,    410,   -477}, 0, {  1926, -18160}, {0x00, 0x7f, 0x00, 0xff}}},
     98     {{{  -188,    410,    -90}, 0, {  1226, -17386}, {0x00, 0x7f, 0x00, 0xff}}},
     99     {{{    23,    410,    154}, 0, {  1648, -16896}, {0x00, 0x7f, 0x00, 0xff}}},
    100     {{{  -188,    410,    -90}, 0, {  1226, -17386}, {0xbb, 0x57, 0x3c, 0xff}}},
    101     {{{   -81,    205,    330}, 0, {  1440, -16546}, {0xbb, 0x57, 0x3c, 0xff}}},
    102     {{{    23,    410,    154}, 0, {  1648, -16896}, {0xbb, 0x57, 0x3c, 0xff}}},
    103     {{{   442,    410,   -549}, 0, {  2486, -18302}, {0x00, 0x7f, 0x00, 0xff}}},
    104     {{{   390,   -101,   -461}, 0, {  2382, -18126}, {0x00, 0x7f, 0x00, 0xff}}},
    105     {{{   249,   -101,   -425}, 0, {  2102, -18054}, {0x00, 0x7f, 0x00, 0xff}}},
    106     {{{    56,   -101,   -302}, 0, {  1716, -17808}, {0x00, 0x7f, 0x00, 0xff}}},
    107 };
    108 
    109 // 0x07010F00 - 0x07010F90
    110 static const Vtx ttm_seg7_vertex_07010F00[] = {
    111     {{{   390,   -101,   -461}, 0, {  2382, -18126}, {0x00, 0x7f, 0x00, 0xff}}},
    112     {{{    56,   -101,   -302}, 0, {  1716, -17808}, {0x00, 0x7f, 0x00, 0xff}}},
    113     {{{   180,   -101,   -109}, 0, {  1962, -17424}, {0x00, 0x7f, 0x00, 0xff}}},
    114     {{{   127,      0,    -21}, 0, {  1858, -17248}, {0x00, 0x7f, 0x00, 0xff}}},
    115     {{{  -100,      0,    -38}, 0, {  1402, -17282}, {0x00, 0x7f, 0x00, 0xff}}},
    116     {{{  -117,      0,    190}, 0, {  1368, -16826}, {0x00, 0x7f, 0x00, 0xff}}},
    117     {{{   -29,   -306,    242}, 0, {  1544, -16722}, {0x00, 0x7f, 0x00, 0xff}}},
    118     {{{  -205,   -306,    137}, 0, {  1192, -16930}, {0x00, 0x7f, 0x00, 0xff}}},
    119     {{{  -186,   -306,    506}, 0, {  1230, -16194}, {0x00, 0x7f, 0x00, 0xff}}},
    120 };
    121 
    122 // 0x07010F90 - 0x07011078
    123 static const Gfx ttm_seg7_dl_07010F90[] = {
    124     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000),
    125     gsDPLoadSync(),
    126     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    127     gsSPLight(&ttm_seg7_lights_07010AD8.l, 1),
    128     gsSPLight(&ttm_seg7_lights_07010AD8.a, 2),
    129     gsSPVertex(ttm_seg7_vertex_07010B20, 15, 0),
    130     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    131     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    132     gsSP1Triangle(12, 13, 14, 0x0),
    133     gsSPVertex(ttm_seg7_vertex_07010C10, 3, 0),
    134     gsSP1Triangle( 0,  1,  2, 0x0),
    135     gsSPLight(&ttm_seg7_lights_07010AF0.l, 1),
    136     gsSPLight(&ttm_seg7_lights_07010AF0.a, 2),
    137     gsSPVertex(ttm_seg7_vertex_07010C40, 15, 0),
    138     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    139     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    140     gsSP1Triangle(12, 13, 14, 0x0),
    141     gsSPVertex(ttm_seg7_vertex_07010D30, 3, 0),
    142     gsSP1Triangle( 0,  1,  2, 0x0),
    143     gsSPLight(&ttm_seg7_lights_07010B08.l, 1),
    144     gsSPLight(&ttm_seg7_lights_07010B08.a, 2),
    145     gsSPVertex(ttm_seg7_vertex_07010D60, 4, 0),
    146     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    147     gsSPEndDisplayList(),
    148 };
    149 
    150 // 0x07011078 - 0x07011128
    151 static const Gfx ttm_seg7_dl_07011078[] = {
    152     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09003800),
    153     gsDPLoadSync(),
    154     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    155     gsSPLight(&ttm_seg7_lights_07010AD8.l, 1),
    156     gsSPLight(&ttm_seg7_lights_07010AD8.a, 2),
    157     gsSPVertex(ttm_seg7_vertex_07010DA0, 6, 0),
    158     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    159     gsSPLight(&ttm_seg7_lights_07010B08.l, 1),
    160     gsSPLight(&ttm_seg7_lights_07010B08.a, 2),
    161     gsSPVertex(ttm_seg7_vertex_07010E00, 16, 0),
    162     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    163     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
    164     gsSP2Triangles(12,  6,  8, 0x0, 13, 14, 15, 0x0),
    165     gsSPVertex(ttm_seg7_vertex_07010F00, 9, 0),
    166     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    167     gsSP1Triangle( 6,  7,  8, 0x0),
    168     gsSPEndDisplayList(),
    169 };
    170 
    171 // 0x07011128 - 0x070111A0
    172 const Gfx ttm_seg7_dl_07011128[] = {
    173     gsDPPipeSync(),
    174     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    175     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    176     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),
    177     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    178     gsDPTileSync(),
    179     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),
    180     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    181     gsSPDisplayList(ttm_seg7_dl_07010F90),
    182     gsSPDisplayList(ttm_seg7_dl_07011078),
    183     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    184     gsDPPipeSync(),
    185     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    186     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    187     gsSPEndDisplayList(),
    188 };