sm64

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

1.inc.c (14413B)


      1 // 0x07012C38 - 0x07012C50
      2 static const Lights1 ccm_seg7_lights_07012C38 = gdSPDefLights1(
      3     0xcc, 0xcc, 0xcc,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07012C50 - 0x07012D50
      8 static const Vtx ccm_seg7_vertex_07012C50[] = {
      9     {{{     0,    -62,    195}, 0, {   990,   1396}, {0x00, 0xd9, 0x78, 0xff}}},
     10     {{{    92,   -107,    148}, 0, {  1448,   1980}, {0x37, 0xbd, 0x5c, 0xff}}},
     11     {{{    92,      0,    183}, 0, {  2012,   1592}, {0x3f, 0x00, 0x6d, 0xff}}},
     12     {{{  -204,      0,      0}, 0, {  4056,   3032}, {0x82, 0x00, 0x00, 0xff}}},
     13     {{{  -173,      0,    108}, 0, {  4056,   2312}, {0x96, 0x00, 0x44, 0xff}}},
     14     {{{  -173,    102,     33}, 0, {  3710,   2820}, {0x96, 0x41, 0x14, 0xff}}},
     15     {{{   -91,    108,    148}, 0, {  3492,   1980}, {0xc0, 0x40, 0x58, 0xff}}},
     16     {{{   -91,      0,    183}, 0, {  4056,   1592}, {0xc8, 0x00, 0x71, 0xff}}},
     17     {{{   -91,    174,     57}, 0, {  3348,   2668}, {0xc8, 0x6c, 0x23, 0xff}}},
     18     {{{   -91,      0,    183}, 0, {   936,   -202}, {0xc8, 0x00, 0x71, 0xff}}},
     19     {{{     0,    -62,    195}, 0, {   166,    270}, {0x00, 0xd9, 0x78, 0xff}}},
     20     {{{     0,     63,    195}, 0, {  1104,    526}, {0x00, 0x27, 0x78, 0xff}}},
     21     {{{    92,      0,    183}, 0, {   344,    980}, {0x3f, 0x00, 0x6d, 0xff}}},
     22     {{{     0,     63,    195}, 0, {  3034,   1396}, {0x00, 0x27, 0x78, 0xff}}},
     23     {{{    92,    108,    148}, 0, {  2576,   1980}, {0x38, 0x43, 0x5c, 0xff}}},
     24     {{{  -173,     63,    -86}, 0, {  3830,   3604}, {0x96, 0x28, 0xc9, 0xff}}},
     25 };
     26 
     27 // 0x07012D50 - 0x07012E50
     28 static const Vtx ccm_seg7_vertex_07012D50[] = {
     29     {{{  -173,    102,     33}, 0, {  3710,   2820}, {0x96, 0x41, 0x14, 0xff}}},
     30     {{{   -91,    174,    -56}, 0, {  3348,   3396}, {0xc0, 0x68, 0xdf, 0xff}}},
     31     {{{  -173,     63,    -86}, 0, {  3830,   3604}, {0x96, 0x28, 0xc9, 0xff}}},
     32     {{{   -91,    174,     57}, 0, {  3348,   2668}, {0xc8, 0x6c, 0x23, 0xff}}},
     33     {{{   -91,    108,   -147}, 0, {  3492,   4084}, {0xc8, 0x42, 0xa4, 0xff}}},
     34     {{{     0,    166,    120}, 0, {  3034,   2214}, {0x00, 0x66, 0x4a, 0xff}}},
     35     {{{     0,    205,      0}, 0, {  3034,   3032}, {0x00, 0x7e, 0x00, 0xff}}},
     36     {{{    92,    108,    148}, 0, {  2576,   1980}, {0x38, 0x43, 0x5c, 0xff}}},
     37     {{{    92,    174,     57}, 0, {  2720,   2668}, {0x40, 0x68, 0x21, 0xff}}},
     38     {{{    92,    174,    -56}, 0, {  2720,   3396}, {0x38, 0x6c, 0xdd, 0xff}}},
     39     {{{  -204,      0,      0}, 0, {     0,   3032}, {0x82, 0x00, 0x00, 0xff}}},
     40     {{{  -173,     63,    -86}, 0, {  -256,   3604}, {0x96, 0x28, 0xc9, 0xff}}},
     41     {{{  -173,    -62,    -86}, 0, {   194,   3604}, {0x96, 0xd8, 0xc9, 0xff}}},
     42     {{{   -91,      0,   -182}, 0, {     0,   4472}, {0xc0, 0x00, 0x93, 0xff}}},
     43     {{{   -91,   -107,   -147}, 0, {   532,   4084}, {0xc8, 0xbd, 0xa4, 0xff}}},
     44     {{{   -91,      0,   -182}, 0, {  4056,   4472}, {0xc0, 0x00, 0x93, 0xff}}},
     45 };
     46 
     47 // 0x07012E50 - 0x07012F50
     48 static const Vtx ccm_seg7_vertex_07012E50[] = {
     49     {{{   -91,    108,   -147}, 0, {  3492,   4084}, {0xc8, 0x42, 0xa4, 0xff}}},
     50     {{{     0,    166,   -119}, 0, {  3034,   3850}, {0x00, 0x66, 0xb6, 0xff}}},
     51     {{{     0,     63,   -194}, 0, {  3034,   4668}, {0x00, 0x27, 0x88, 0xff}}},
     52     {{{    92,    108,   -147}, 0, {  2576,   4084}, {0x3f, 0x40, 0xa8, 0xff}}},
     53     {{{    92,    174,    -56}, 0, {  2720,   3396}, {0x38, 0x6c, 0xdd, 0xff}}},
     54     {{{    92,      0,   -182}, 0, {  2012,   4472}, {0x37, 0x00, 0x8e, 0xff}}},
     55     {{{  -204,      0,      0}, 0, {     0,   3032}, {0x82, 0x00, 0x00, 0xff}}},
     56     {{{  -173,    -62,    -86}, 0, {   194,   3604}, {0x96, 0xd8, 0xc9, 0xff}}},
     57     {{{  -173,   -101,     33}, 0, {   314,   2820}, {0x96, 0xbf, 0x14, 0xff}}},
     58     {{{   -91,   -173,    -56}, 0, {   676,   3396}, {0xc0, 0x98, 0xdf, 0xff}}},
     59     {{{   -91,   -107,   -147}, 0, {   532,   4084}, {0xc8, 0xbd, 0xa4, 0xff}}},
     60     {{{   -91,   -173,     57}, 0, {   676,   2668}, {0xc8, 0x94, 0x23, 0xff}}},
     61     {{{     0,    -62,   -194}, 0, {   990,   4668}, {0x00, 0xd9, 0x88, 0xff}}},
     62     {{{     0,   -165,   -119}, 0, {   990,   3850}, {0x00, 0x9a, 0xb6, 0xff}}},
     63     {{{    92,   -107,   -147}, 0, {  1448,   4084}, {0x3f, 0xc0, 0xa8, 0xff}}},
     64     {{{    92,   -173,    -56}, 0, {  1304,   3396}, {0x38, 0x94, 0xdd, 0xff}}},
     65 };
     66 
     67 // 0x07012F50 - 0x07013050
     68 static const Vtx ccm_seg7_vertex_07012F50[] = {
     69     {{{  -204,      0,      0}, 0, {     0,   3032}, {0x82, 0x00, 0x00, 0xff}}},
     70     {{{  -173,   -101,     33}, 0, {   314,   2820}, {0x96, 0xbf, 0x14, 0xff}}},
     71     {{{  -173,      0,    108}, 0, {     0,   2312}, {0x96, 0x00, 0x44, 0xff}}},
     72     {{{   -91,   -107,    148}, 0, {   532,   1980}, {0xc1, 0xc0, 0x58, 0xff}}},
     73     {{{   -91,   -173,     57}, 0, {   676,   2668}, {0xc8, 0x94, 0x23, 0xff}}},
     74     {{{   -91,      0,    183}, 0, {     0,   1592}, {0xc8, 0x00, 0x71, 0xff}}},
     75     {{{     0,   -204,      0}, 0, {   990,   3032}, {0x00, 0x82, 0x00, 0xff}}},
     76     {{{     0,   -165,    120}, 0, {   990,   2214}, {0x00, 0x9a, 0x4a, 0xff}}},
     77     {{{    92,   -173,     57}, 0, {  1304,   2668}, {0x40, 0x98, 0x21, 0xff}}},
     78     {{{    92,   -173,    -56}, 0, {  1304,   3396}, {0x38, 0x94, 0xdd, 0xff}}},
     79     {{{    92,   -107,    148}, 0, {  1448,   1980}, {0x37, 0xbd, 0x5c, 0xff}}},
     80     {{{   205,      0,      0}, 0, {  2012,   3032}, {0x7e, 0x00, 0x00, 0xff}}},
     81     {{{   174,      0,   -107}, 0, {  2012,   3752}, {0x6a, 0x00, 0xbc, 0xff}}},
     82     {{{   174,    102,    -32}, 0, {  2358,   3244}, {0x6a, 0x41, 0xeb, 0xff}}},
     83     {{{    92,    108,   -147}, 0, {  2576,   4084}, {0x3f, 0x40, 0xa8, 0xff}}},
     84     {{{    92,      0,   -182}, 0, {  2012,   4472}, {0x37, 0x00, 0x8e, 0xff}}},
     85 };
     86 
     87 // 0x07013050 - 0x07013150
     88 static const Vtx ccm_seg7_vertex_07013050[] = {
     89     {{{   174,    102,    -32}, 0, {  2358,   3244}, {0x6a, 0x41, 0xeb, 0xff}}},
     90     {{{    92,    108,   -147}, 0, {  2576,   4084}, {0x3f, 0x40, 0xa8, 0xff}}},
     91     {{{    92,    174,    -56}, 0, {  2720,   3396}, {0x38, 0x6c, 0xdd, 0xff}}},
     92     {{{    92,      0,   -182}, 0, {  -264,    390}, {0x37, 0x00, 0x8e, 0xff}}},
     93     {{{     0,    -62,   -194}, 0, {   802,   1062}, {0x00, 0xd9, 0x88, 0xff}}},
     94     {{{     0,     63,   -194}, 0, {    -8,    -50}, {0x00, 0x27, 0x88, 0xff}}},
     95     {{{   -91,      0,   -182}, 0, {  1038,    620}, {0xc0, 0x00, 0x93, 0xff}}},
     96     {{{     0,    -62,   -194}, 0, {   990,   4668}, {0x00, 0xd9, 0x88, 0xff}}},
     97     {{{   -91,   -107,   -147}, 0, {   532,   4084}, {0xc8, 0xbd, 0xa4, 0xff}}},
     98     {{{   -91,      0,   -182}, 0, {     0,   4472}, {0xc0, 0x00, 0x93, 0xff}}},
     99     {{{     0,     63,   -194}, 0, {  3034,   4668}, {0x00, 0x27, 0x88, 0xff}}},
    100     {{{   -91,      0,   -182}, 0, {  4056,   4472}, {0xc0, 0x00, 0x93, 0xff}}},
    101     {{{   -91,    108,   -147}, 0, {  3492,   4084}, {0xc8, 0x42, 0xa4, 0xff}}},
    102     {{{   205,      0,      0}, 0, {  2012,   3032}, {0x7e, 0x00, 0x00, 0xff}}},
    103     {{{   174,     63,     87}, 0, {  2238,   2460}, {0x6a, 0x28, 0x37, 0xff}}},
    104     {{{    92,    174,     57}, 0, {  2720,   2668}, {0x40, 0x68, 0x21, 0xff}}},
    105 };
    106 
    107 // 0x07013150 - 0x07013250
    108 static const Vtx ccm_seg7_vertex_07013150[] = {
    109     {{{   174,     63,     87}, 0, {  2238,   2460}, {0x6a, 0x28, 0x37, 0xff}}},
    110     {{{    92,    174,     57}, 0, {  2720,   2668}, {0x40, 0x68, 0x21, 0xff}}},
    111     {{{    92,    108,    148}, 0, {  2576,   1980}, {0x38, 0x43, 0x5c, 0xff}}},
    112     {{{    92,    174,    -56}, 0, {  2720,   3396}, {0x38, 0x6c, 0xdd, 0xff}}},
    113     {{{     0,    166,   -119}, 0, {  3034,   3850}, {0x00, 0x66, 0xb6, 0xff}}},
    114     {{{     0,    205,      0}, 0, {  3034,   3032}, {0x00, 0x7e, 0x00, 0xff}}},
    115     {{{   -91,    174,    -56}, 0, {  3348,   3396}, {0xc0, 0x68, 0xdf, 0xff}}},
    116     {{{   -91,    108,   -147}, 0, {  3492,   4084}, {0xc8, 0x42, 0xa4, 0xff}}},
    117     {{{   -91,    174,     57}, 0, {  3348,   2668}, {0xc8, 0x6c, 0x23, 0xff}}},
    118     {{{   205,      0,      0}, 0, {  2012,   3032}, {0x7e, 0x00, 0x00, 0xff}}},
    119     {{{   174,    -62,     87}, 0, {  1786,   2460}, {0x6a, 0xd8, 0x37, 0xff}}},
    120     {{{    92,      0,    183}, 0, {  2012,   1592}, {0x3f, 0x00, 0x6d, 0xff}}},
    121     {{{    92,   -107,    148}, 0, {  1448,   1980}, {0x37, 0xbd, 0x5c, 0xff}}},
    122     {{{     0,    166,    120}, 0, {  3034,   2214}, {0x00, 0x66, 0x4a, 0xff}}},
    123     {{{     0,     63,    195}, 0, {  3034,   1396}, {0x00, 0x27, 0x78, 0xff}}},
    124     {{{   -91,    108,    148}, 0, {  3492,   1980}, {0xc0, 0x40, 0x58, 0xff}}},
    125 };
    126 
    127 // 0x07013250 - 0x07013350
    128 static const Vtx ccm_seg7_vertex_07013250[] = {
    129     {{{     0,     63,    195}, 0, {  3034,   1396}, {0x00, 0x27, 0x78, 0xff}}},
    130     {{{   -91,    108,    148}, 0, {  3492,   1980}, {0xc0, 0x40, 0x58, 0xff}}},
    131     {{{   -91,      0,    183}, 0, {  4056,   1592}, {0xc8, 0x00, 0x71, 0xff}}},
    132     {{{   205,      0,      0}, 0, {  2012,   3032}, {0x7e, 0x00, 0x00, 0xff}}},
    133     {{{   174,    -62,     87}, 0, {  1786,   2460}, {0x6a, 0xd8, 0x37, 0xff}}},
    134     {{{   174,   -101,    -32}, 0, {  1666,   3244}, {0x6a, 0xbf, 0xec, 0xff}}},
    135     {{{    92,   -107,    148}, 0, {  1448,   1980}, {0x37, 0xbd, 0x5c, 0xff}}},
    136     {{{    92,   -173,     57}, 0, {  1304,   2668}, {0x40, 0x98, 0x21, 0xff}}},
    137     {{{    92,   -173,    -56}, 0, {  1304,   3396}, {0x38, 0x94, 0xdd, 0xff}}},
    138     {{{     0,    -62,    195}, 0, {   990,   1396}, {0x00, 0xd9, 0x78, 0xff}}},
    139     {{{     0,   -165,    120}, 0, {   990,   2214}, {0x00, 0x9a, 0x4a, 0xff}}},
    140     {{{   -91,   -107,    148}, 0, {   532,   1980}, {0xc1, 0xc0, 0x58, 0xff}}},
    141     {{{   -91,      0,    183}, 0, {     0,   1592}, {0xc8, 0x00, 0x71, 0xff}}},
    142     {{{   -91,   -173,     57}, 0, {   676,   2668}, {0xc8, 0x94, 0x23, 0xff}}},
    143     {{{   174,      0,   -107}, 0, {  2012,   3752}, {0x6a, 0x00, 0xbc, 0xff}}},
    144     {{{    92,   -107,   -147}, 0, {  1448,   4084}, {0x3f, 0xc0, 0xa8, 0xff}}},
    145 };
    146 
    147 // 0x07013350 - 0x070133E0
    148 static const Vtx ccm_seg7_vertex_07013350[] = {
    149     {{{     0,   -165,   -119}, 0, {   990,   3850}, {0x00, 0x9a, 0xb6, 0xff}}},
    150     {{{   -91,   -173,    -56}, 0, {   676,   3396}, {0xc0, 0x98, 0xdf, 0xff}}},
    151     {{{   -91,   -107,   -147}, 0, {   532,   4084}, {0xc8, 0xbd, 0xa4, 0xff}}},
    152     {{{   174,      0,   -107}, 0, {  2012,   3752}, {0x6a, 0x00, 0xbc, 0xff}}},
    153     {{{    92,   -107,   -147}, 0, {  1448,   4084}, {0x3f, 0xc0, 0xa8, 0xff}}},
    154     {{{    92,      0,   -182}, 0, {  2012,   4472}, {0x37, 0x00, 0x8e, 0xff}}},
    155     {{{    92,   -173,    -56}, 0, {  1304,   3396}, {0x38, 0x94, 0xdd, 0xff}}},
    156     {{{     0,   -204,      0}, 0, {   990,   3032}, {0x00, 0x82, 0x00, 0xff}}},
    157     {{{   -91,   -173,     57}, 0, {   676,   2668}, {0xc8, 0x94, 0x23, 0xff}}},
    158 };
    159 
    160 // 0x070133E0 - 0x070136D0
    161 static const Gfx ccm_seg7_dl_070133E0[] = {
    162     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07011958),
    163     gsDPLoadSync(),
    164     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    165     gsSPLight(&ccm_seg7_lights_07012C38.l, 1),
    166     gsSPLight(&ccm_seg7_lights_07012C38.a, 2),
    167     gsSPVertex(ccm_seg7_vertex_07012C50, 16, 0),
    168     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    169     gsSP2Triangles( 4,  6,  5, 0x0,  4,  7,  6, 0x0),
    170     gsSP2Triangles( 5,  6,  8, 0x0,  9, 10, 11, 0x0),
    171     gsSP2Triangles(10, 12, 11, 0x0, 13,  2, 14, 0x0),
    172     gsSP1Triangle( 3,  5, 15, 0x0),
    173     gsSPVertex(ccm_seg7_vertex_07012D50, 16, 0),
    174     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    175     gsSP2Triangles( 2,  1,  4, 0x0,  3,  5,  6, 0x0),
    176     gsSP2Triangles( 5,  7,  8, 0x0,  5,  8,  6, 0x0),
    177     gsSP2Triangles( 6,  8,  9, 0x0, 10, 11, 12, 0x0),
    178     gsSP2Triangles(11, 13, 12, 0x0, 12, 13, 14, 0x0),
    179     gsSP1Triangle( 2,  4, 15, 0x0),
    180     gsSPVertex(ccm_seg7_vertex_07012E50, 16, 0),
    181     gsSP2Triangles( 0,  1,  2, 0x0,  1,  3,  2, 0x0),
    182     gsSP2Triangles( 1,  4,  3, 0x0,  2,  3,  5, 0x0),
    183     gsSP2Triangles( 6,  7,  8, 0x0,  7,  9,  8, 0x0),
    184     gsSP2Triangles( 7, 10,  9, 0x0,  8,  9, 11, 0x0),
    185     gsSP2Triangles(10, 12, 13, 0x0, 12, 14, 13, 0x0),
    186     gsSP2Triangles(12,  5, 14, 0x0, 13, 14, 15, 0x0),
    187     gsSPVertex(ccm_seg7_vertex_07012F50, 16, 0),
    188     gsSP2Triangles( 0,  1,  2, 0x0,  1,  3,  2, 0x0),
    189     gsSP2Triangles( 1,  4,  3, 0x0,  2,  3,  5, 0x0),
    190     gsSP2Triangles( 4,  6,  7, 0x0,  6,  8,  7, 0x0),
    191     gsSP2Triangles( 6,  9,  8, 0x0,  7,  8, 10, 0x0),
    192     gsSP2Triangles(11, 12, 13, 0x0, 12, 14, 13, 0x0),
    193     gsSP1Triangle(12, 15, 14, 0x0),
    194     gsSPVertex(ccm_seg7_vertex_07013050, 16, 0),
    195     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    196     gsSP2Triangles( 4,  6,  5, 0x0,  7,  8,  9, 0x0),
    197     gsSP2Triangles(10, 11, 12, 0x0, 13,  0, 14, 0x0),
    198     gsSP2Triangles( 0, 15, 14, 0x0,  0,  2, 15, 0x0),
    199     gsSPVertex(ccm_seg7_vertex_07013150, 16, 0),
    200     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    201     gsSP2Triangles( 4,  6,  5, 0x0,  4,  7,  6, 0x0),
    202     gsSP2Triangles( 5,  6,  8, 0x0,  9,  0, 10, 0x0),
    203     gsSP2Triangles( 0, 11, 10, 0x0,  0,  2, 11, 0x0),
    204     gsSP2Triangles(10, 11, 12, 0x0,  2, 13, 14, 0x0),
    205     gsSP2Triangles(13, 15, 14, 0x0, 13,  8, 15, 0x0),
    206     gsSPVertex(ccm_seg7_vertex_07013250, 16, 0),
    207     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    208     gsSP2Triangles( 4,  6,  7, 0x0,  4,  7,  5, 0x0),
    209     gsSP2Triangles( 5,  7,  8, 0x0,  6,  9, 10, 0x0),
    210     gsSP2Triangles( 9, 11, 10, 0x0,  9, 12, 11, 0x0),
    211     gsSP2Triangles(10, 11, 13, 0x0,  3,  5, 14, 0x0),
    212     gsSP2Triangles( 5, 15, 14, 0x0,  5,  8, 15, 0x0),
    213     gsSPVertex(ccm_seg7_vertex_07013350, 9, 0),
    214     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    215     gsSP2Triangles( 6,  7,  0, 0x0,  7,  1,  0, 0x0),
    216     gsSP1Triangle( 7,  8,  1, 0x0),
    217     gsSPEndDisplayList(),
    218 };
    219 
    220 // 0x070136D0 - 0x07013730
    221 const Gfx ccm_seg7_dl_070136D0[] = {
    222     gsDPPipeSync(),
    223     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    224     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),
    225     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    226     gsDPTileSync(),
    227     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),
    228     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    229     gsSPDisplayList(ccm_seg7_dl_070133E0),
    230     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    231     gsDPPipeSync(),
    232     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    233     gsSPEndDisplayList(),
    234 };