sm64

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

2.inc.c (10495B)


      1 // 0x0700F300 - 0x0700F318
      2 static const Lights1 ttm_seg7_lights_0700F300 = gdSPDefLights1(
      3     0x7f, 0x7f, 0x7f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700F318 - 0x0700F418
      8 static const Vtx ttm_seg7_vertex_0700F318[] = {
      9     {{{   515,    202,   -402}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     10     {{{   474,    202,   -408}, 0, {   258,    700}, {0x00, 0x7f, 0x00, 0xff}}},
     11     {{{   491,    202,   -385}, 0, {     0,    700}, {0x00, 0x7f, 0x00, 0xff}}},
     12     {{{   -31,    202,   -485}, 0, {   258,   1278}, {0x00, 0x7f, 0x00, 0xff}}},
     13     {{{     8,    202,   -479}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     14     {{{    -8,    202,   -502}, 0, {     0,   1278}, {0x00, 0x7f, 0x00, 0xff}}},
     15     {{{   -14,    202,   -462}, 0, {   258,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     16     {{{    18,    202,    388}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     17     {{{   -22,    202,    382}, 0, {   376,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     18     {{{   -28,    202,    422}, 0, {   376,    582}, {0x00, 0x7f, 0x00, 0xff}}},
     19     {{{    12,    202,    429}, 0, {     0,    582}, {0x00, 0x7f, 0x00, 0xff}}},
     20     {{{  -488,    202,    312}, 0, {   376,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     21     {{{  -453,    202,    359}, 0, {     0,    582}, {0x00, 0x7f, 0x00, 0xff}}},
     22     {{{  -447,    202,    318}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     23     {{{  -494,    202,    352}, 0, {   376,    582}, {0x00, 0x7f, 0x00, 0xff}}},
     24     {{{   497,    202,   -426}, 0, {   258,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     25 };
     26 
     27 // 0x0700F418 - 0x0700F508
     28 static const Vtx ttm_seg7_vertex_0700F418[] = {
     29     {{{   -14,   -250,   -462}, 0, {  3982,    700}, {0x9a, 0x00, 0x4b, 0xff}}},
     30     {{{   -31,    202,   -485}, 0, {     0,    990}, {0x9a, 0x00, 0x4b, 0xff}}},
     31     {{{   -31,   -252,   -485}, 0, {  4002,    990}, {0x9a, 0x00, 0x4b, 0xff}}},
     32     {{{   -31,   -252,   -485}, 0, {  4002,    700}, {0xb5, 0x00, 0x9a, 0xff}}},
     33     {{{   -31,    202,   -485}, 0, {     0,    700}, {0xb5, 0x00, 0x9a, 0xff}}},
     34     {{{    -8,    202,   -502}, 0, {     0,    990}, {0xb5, 0x00, 0x9a, 0xff}}},
     35     {{{    -8,   -248,   -502}, 0, {  3970,    990}, {0xb5, 0x00, 0x9a, 0xff}}},
     36     {{{    -8,   -248,   -502}, 0, {  3970,    700}, {0x68, 0x00, 0xb8, 0xff}}},
     37     {{{    -8,    202,   -502}, 0, {     0,    700}, {0x68, 0x00, 0xb8, 0xff}}},
     38     {{{     8,    202,   -479}, 0, {     0,    990}, {0x68, 0x00, 0xb8, 0xff}}},
     39     {{{     8,   -246,   -479}, 0, {  3950,    990}, {0x68, 0x00, 0xb8, 0xff}}},
     40     {{{     8,   -246,   -479}, 0, {  3950,    700}, {0x4d, 0x00, 0x64, 0xff}}},
     41     {{{   -14,    202,   -462}, 0, {     0,    990}, {0x4d, 0x00, 0x64, 0xff}}},
     42     {{{   -14,   -250,   -462}, 0, {  3982,    990}, {0x4d, 0x00, 0x64, 0xff}}},
     43     {{{     8,    202,   -479}, 0, {     0,    700}, {0x4d, 0x00, 0x64, 0xff}}},
     44 };
     45 
     46 // 0x0700F508 - 0x0700F5F8
     47 static const Vtx ttm_seg7_vertex_0700F508[] = {
     48     {{{   515,   -171,   -402}, 0, { -2996,    702}, {0x65, 0x00, 0xb4, 0xff}}},
     49     {{{   497,   -174,   -426}, 0, { -3018,    990}, {0x65, 0x00, 0xb4, 0xff}}},
     50     {{{   497,    202,   -426}, 0, {   238,    990}, {0x65, 0x00, 0xb4, 0xff}}},
     51     {{{   -14,   -250,   -462}, 0, {  3982,    700}, {0x9a, 0x00, 0x4b, 0xff}}},
     52     {{{   -14,    202,   -462}, 0, {     0,    700}, {0x9a, 0x00, 0x4b, 0xff}}},
     53     {{{   -31,    202,   -485}, 0, {     0,    990}, {0x9a, 0x00, 0x4b, 0xff}}},
     54     {{{   491,   -175,   -385}, 0, { -2358,   1278}, {0x9a, 0x00, 0x4b, 0xff}}},
     55     {{{   491,    202,   -385}, 0, {   990,   1278}, {0x9a, 0x00, 0x4b, 0xff}}},
     56     {{{   474,    202,   -408}, 0, {   990,    990}, {0x9a, 0x00, 0x4b, 0xff}}},
     57     {{{   474,   -177,   -408}, 0, { -2380,    990}, {0x9a, 0x00, 0x4b, 0xff}}},
     58     {{{   497,    202,   -426}, 0, {   990,    700}, {0xb2, 0x00, 0x9c, 0xff}}},
     59     {{{   497,   -174,   -426}, 0, { -2266,    702}, {0xb2, 0x00, 0x9c, 0xff}}},
     60     {{{   474,   -177,   -408}, 0, { -2302,    990}, {0xb2, 0x00, 0x9c, 0xff}}},
     61     {{{   474,    202,   -408}, 0, {   990,    990}, {0xb2, 0x00, 0x9c, 0xff}}},
     62     {{{   515,    202,   -402}, 0, {   238,    700}, {0x65, 0x00, 0xb4, 0xff}}},
     63 };
     64 
     65 // 0x0700F5F8 - 0x0700F6E8
     66 static const Vtx ttm_seg7_vertex_0700F5F8[] = {
     67     {{{   -28,   -104,    422}, 0, {  -540,   1396}, {0x83, 0x00, 0xee, 0xff}}},
     68     {{{   -22,    202,    382}, 0, {  2012,    990}, {0x83, 0x00, 0xee, 0xff}}},
     69     {{{   -22,   -104,    382}, 0, {  -540,    990}, {0x83, 0x00, 0xee, 0xff}}},
     70     {{{   515,   -171,   -402}, 0, { -2326,   1278}, {0x49, 0x00, 0x67, 0xff}}},
     71     {{{   515,    202,   -402}, 0, {   990,   1278}, {0x49, 0x00, 0x67, 0xff}}},
     72     {{{   491,    202,   -385}, 0, {   990,    990}, {0x49, 0x00, 0x67, 0xff}}},
     73     {{{   491,   -175,   -385}, 0, { -2358,    990}, {0x49, 0x00, 0x67, 0xff}}},
     74     {{{    18,   -104,    388}, 0, { -1052,    990}, {0x7d, 0x00, 0x12, 0xff}}},
     75     {{{    18,    202,    388}, 0, {  1502,    990}, {0x7d, 0x00, 0x12, 0xff}}},
     76     {{{    12,    202,    429}, 0, {  1502,    582}, {0x7d, 0x00, 0x12, 0xff}}},
     77     {{{    12,   -104,    429}, 0, { -1052,    582}, {0x7d, 0x00, 0x12, 0xff}}},
     78     {{{    12,   -104,    429}, 0, {  -542,   1396}, {0xeb, 0x00, 0x7d, 0xff}}},
     79     {{{   -28,    202,    422}, 0, {  2012,    990}, {0xeb, 0x00, 0x7d, 0xff}}},
     80     {{{   -28,   -104,    422}, 0, {  -540,    990}, {0xeb, 0x00, 0x7d, 0xff}}},
     81     {{{    12,    202,    429}, 0, {  2012,   1396}, {0xeb, 0x00, 0x7d, 0xff}}},
     82 };
     83 
     84 // 0x0700F6E8 - 0x0700F7D8
     85 static const Vtx ttm_seg7_vertex_0700F6E8[] = {
     86     {{{  -447,   -104,    318}, 0, {     0,    990}, {0x7d, 0x00, 0x12, 0xff}}},
     87     {{{  -447,    202,    318}, 0, {  2524,    990}, {0x7d, 0x00, 0x12, 0xff}}},
     88     {{{  -453,    202,    359}, 0, {  2524,    582}, {0x7d, 0x00, 0x12, 0xff}}},
     89     {{{   -28,   -104,    422}, 0, {  -540,   1396}, {0x83, 0x00, 0xee, 0xff}}},
     90     {{{   -28,    202,    422}, 0, {  2012,   1396}, {0x83, 0x00, 0xee, 0xff}}},
     91     {{{   -22,    202,    382}, 0, {  2012,    990}, {0x83, 0x00, 0xee, 0xff}}},
     92     {{{   -22,   -104,    382}, 0, { -1052,    990}, {0x12, 0x00, 0x83, 0xff}}},
     93     {{{    18,    202,    388}, 0, {  1500,    582}, {0x12, 0x00, 0x83, 0xff}}},
     94     {{{    18,   -104,    388}, 0, { -1052,    582}, {0x12, 0x00, 0x83, 0xff}}},
     95     {{{   -22,    202,    382}, 0, {  1500,    990}, {0x12, 0x00, 0x83, 0xff}}},
     96     {{{  -488,   -104,    312}, 0, { -1052,    990}, {0x12, 0x00, 0x83, 0xff}}},
     97     {{{  -447,    202,    318}, 0, {  1500,    582}, {0x12, 0x00, 0x83, 0xff}}},
     98     {{{  -447,   -104,    318}, 0, { -1052,    582}, {0x12, 0x00, 0x83, 0xff}}},
     99     {{{  -488,    202,    312}, 0, {  1500,    990}, {0x12, 0x00, 0x83, 0xff}}},
    100     {{{  -453,   -104,    359}, 0, {     0,    582}, {0x7d, 0x00, 0x12, 0xff}}},
    101 };
    102 
    103 // 0x0700F7D8 - 0x0700F858
    104 static const Vtx ttm_seg7_vertex_0700F7D8[] = {
    105     {{{  -453,   -104,    359}, 0, {  -540,   1396}, {0xeb, 0x00, 0x7d, 0xff}}},
    106     {{{  -494,    202,    352}, 0, {  2012,    990}, {0xeb, 0x00, 0x7d, 0xff}}},
    107     {{{  -494,   -104,    352}, 0, {  -540,    990}, {0xeb, 0x00, 0x7d, 0xff}}},
    108     {{{  -453,    202,    359}, 0, {  2012,   1396}, {0xeb, 0x00, 0x7d, 0xff}}},
    109     {{{  -494,   -104,    352}, 0, {  2524,    582}, {0x83, 0x00, 0xee, 0xff}}},
    110     {{{  -488,    202,    312}, 0, {     0,    990}, {0x83, 0x00, 0xee, 0xff}}},
    111     {{{  -488,   -104,    312}, 0, {  2524,    990}, {0x83, 0x00, 0xee, 0xff}}},
    112     {{{  -494,    202,    352}, 0, {     0,    582}, {0x83, 0x00, 0xee, 0xff}}},
    113 };
    114 
    115 // 0x0700F858 - 0x0700F8D0
    116 static const Gfx ttm_seg7_dl_0700F858[] = {
    117     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ttm_seg7_texture_07001800),
    118     gsDPLoadSync(),
    119     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    120     gsSPLight(&ttm_seg7_lights_0700F300.l, 1),
    121     gsSPLight(&ttm_seg7_lights_0700F300.a, 2),
    122     gsSPVertex(ttm_seg7_vertex_0700F318, 16, 0),
    123     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    124     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
    125     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
    126     gsSP2Triangles(11, 14, 12, 0x0,  0, 15,  1, 0x0),
    127     gsSPEndDisplayList(),
    128 };
    129 
    130 // 0x0700F8D0 - 0x0700FA18
    131 static const Gfx ttm_seg7_dl_0700F8D0[] = {
    132     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09005000),
    133     gsDPLoadSync(),
    134     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    135     gsSPVertex(ttm_seg7_vertex_0700F418, 15, 0),
    136     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    137     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
    138     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
    139     gsSP1Triangle(11, 14, 12, 0x0),
    140     gsSPVertex(ttm_seg7_vertex_0700F508, 15, 0),
    141     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    142     gsSP2Triangles( 6,  7,  8, 0x0,  6,  8,  9, 0x0),
    143     gsSP2Triangles(10, 11, 12, 0x0, 10, 12, 13, 0x0),
    144     gsSP1Triangle(14,  0,  2, 0x0),
    145     gsSPVertex(ttm_seg7_vertex_0700F5F8, 15, 0),
    146     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    147     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
    148     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
    149     gsSP1Triangle(11, 14, 12, 0x0),
    150     gsSPVertex(ttm_seg7_vertex_0700F6E8, 15, 0),
    151     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    152     gsSP2Triangles( 6,  7,  8, 0x0,  6,  9,  7, 0x0),
    153     gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
    154     gsSP1Triangle( 0,  2, 14, 0x0),
    155     gsSPVertex(ttm_seg7_vertex_0700F7D8, 8, 0),
    156     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    157     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
    158     gsSPEndDisplayList(),
    159 };
    160 
    161 // 0x0700FA18 - 0x0700FA90
    162 const Gfx ttm_seg7_dl_0700FA18[] = {
    163     gsDPPipeSync(),
    164     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    165     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    166     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),
    167     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    168     gsDPTileSync(),
    169     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),
    170     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    171     gsSPDisplayList(ttm_seg7_dl_0700F858),
    172     gsSPDisplayList(ttm_seg7_dl_0700F8D0),
    173     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    174     gsDPPipeSync(),
    175     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    176     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    177     gsSPEndDisplayList(),
    178 };