sm64

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

model.inc.c (7181B)


      1 // 0x07016658 - 0x07016670
      2 static const Lights1 lll_seg7_lights_07016658 = gdSPDefLights1(
      3     0x3f, 0x3f, 0x3f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07016670 - 0x07016770
      8 static const Vtx lll_seg7_vertex_07016670[] = {
      9     {{{   325,    282,   -210}, 0, {   180,    494}, {0x43, 0x58, 0xc4, 0xff}}},
     10     {{{   186,    512,   -107}, 0, {   526,    236}, {0xe3, 0x7b, 0x09, 0xff}}},
     11     {{{   335,    282,    194}, 0, {   154,   -514}, {0x51, 0x5a, 0x23, 0xff}}},
     12     {{{   186,    512,    108}, 0, {   526,   -300}, {0xe8, 0x7a, 0xeb, 0xff}}},
     13     {{{     0,    282,    387}, 0, {   990,   -998}, {0x00, 0x55, 0x5d, 0xff}}},
     14     {{{   640,      0,   -383}, 0, {  -604,    926}, {0x4b, 0x62, 0xe6, 0xff}}},
     15     {{{   640,      0,    384}, 0, {  -604,   -990}, {0x44, 0x63, 0x26, 0xff}}},
     16     {{{     0,      0,    768}, 0, {   990,  -1948}, {0x00, 0x65, 0x4c, 0xff}}},
     17     {{{     0,    512,    215}, 0, {   990,   -568}, {0x26, 0x53, 0xa9, 0xff}}},
     18     {{{  -185,    512,    108}, 0, {  1454,   -300}, {0x36, 0x6b, 0x26, 0xff}}},
     19     {{{  -334,    282,    194}, 0, {  1826,   -514}, {0xaf, 0x5a, 0x23, 0xff}}},
     20     {{{  -639,      0,    384}, 0, {  2586,   -990}, {0xbc, 0x63, 0x26, 0xff}}},
     21     {{{     0,      0,   -767}, 0, {   990,   1882}, {0x00, 0x65, 0xb4, 0xff}}},
     22     {{{     0,    282,   -386}, 0, {   990,    934}, {0x00, 0x5a, 0xa7, 0xff}}},
     23     {{{     0,    512,   -214}, 0, {   990,    504}, {0xe5, 0x7a, 0xf0, 0xff}}},
     24     {{{  -324,    282,   -210}, 0, {  1800,    494}, {0xbd, 0x58, 0xc5, 0xff}}},
     25 };
     26 
     27 // 0x07016770 - 0x070167F0
     28 static const Vtx lll_seg7_vertex_07016770[] = {
     29     {{{  -324,    282,   -210}, 0, {  1800,    494}, {0xbd, 0x58, 0xc5, 0xff}}},
     30     {{{  -185,    512,   -107}, 0, {  1454,    236}, {0xfa, 0x6c, 0x42, 0xff}}},
     31     {{{     0,    512,   -214}, 0, {   990,    504}, {0xe5, 0x7a, 0xf0, 0xff}}},
     32     {{{  -334,    282,    194}, 0, {  1826,   -514}, {0xaf, 0x5a, 0x23, 0xff}}},
     33     {{{  -639,      0,   -383}, 0, {  2586,    926}, {0xb5, 0x62, 0xe6, 0xff}}},
     34     {{{     0,      0,   -767}, 0, {   990,   1882}, {0x00, 0x65, 0xb4, 0xff}}},
     35     {{{  -185,    512,    108}, 0, {  1454,   -300}, {0x36, 0x6b, 0x26, 0xff}}},
     36     {{{  -639,      0,    384}, 0, {  2586,   -990}, {0xbc, 0x63, 0x26, 0xff}}},
     37 };
     38 
     39 // 0x070167F0 - 0x07016850
     40 static const Vtx lll_seg7_vertex_070167F0[] = {
     41     {{{     0,    102,   -214}, 0, {   990,    478}, {0x0d, 0x69, 0x44, 0xff}}},
     42     {{{   186,    102,    108}, 0, {   224,    922}, {0xa1, 0x4c, 0xdf, 0xff}}},
     43     {{{   186,    102,   -107}, 0, {   734,    922}, {0xa7, 0x2c, 0x4d, 0xff}}},
     44     {{{     0,    102,    215}, 0, {     0,    480}, {0xed, 0x4c, 0x9d, 0xff}}},
     45     {{{  -185,    102,   -107}, 0, {   734,     36}, {0x70, 0x2c, 0x26, 0xff}}},
     46     {{{  -185,    102,    108}, 0, {   224,     36}, {0x4c, 0x4c, 0xbe, 0xff}}},
     47 };
     48 
     49 // 0x07016850 - 0x07016930
     50 static const Vtx lll_seg7_vertex_07016850[] = {
     51     {{{   186,    512,   -107}, 0, {  3546,      0}, {0xe3, 0x7b, 0x09, 0xff}}},
     52     {{{   186,    102,   -107}, 0, {  3546,    942}, {0xa7, 0x2c, 0x4d, 0xff}}},
     53     {{{   186,    102,    108}, 0, {  2524,    942}, {0xa1, 0x4c, 0xdf, 0xff}}},
     54     {{{   186,    512,    108}, 0, {  2524,      0}, {0xe8, 0x7a, 0xeb, 0xff}}},
     55     {{{     0,    512,   -214}, 0, {  4568,      0}, {0xe5, 0x7a, 0xf0, 0xff}}},
     56     {{{     0,    102,   -214}, 0, {  4568,    942}, {0x0d, 0x69, 0x44, 0xff}}},
     57     {{{     0,    102,    215}, 0, {  1502,    942}, {0xed, 0x4c, 0x9d, 0xff}}},
     58     {{{     0,    512,    215}, 0, {  1502,      0}, {0x26, 0x53, 0xa9, 0xff}}},
     59     {{{  -185,    102,    108}, 0, {   480,    942}, {0x4c, 0x4c, 0xbe, 0xff}}},
     60     {{{  -185,    512,    108}, 0, {   480,      0}, {0x36, 0x6b, 0x26, 0xff}}},
     61     {{{  -185,    512,    108}, 0, {  6612,      0}, {0x36, 0x6b, 0x26, 0xff}}},
     62     {{{  -185,    102,   -107}, 0, {  5590,    942}, {0x70, 0x2c, 0x26, 0xff}}},
     63     {{{  -185,    512,   -107}, 0, {  5590,      0}, {0xfa, 0x6c, 0x42, 0xff}}},
     64     {{{  -185,    102,    108}, 0, {  6612,    942}, {0x4c, 0x4c, 0xbe, 0xff}}},
     65 };
     66 
     67 // 0x07016930 - 0x07016A30
     68 static const Gfx lll_seg7_dl_07016930[] = {
     69     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09003000),
     70     gsDPLoadSync(),
     71     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     72     gsSPLight(&lll_seg7_lights_07016658.l, 1),
     73     gsSPLight(&lll_seg7_lights_07016658.a, 2),
     74     gsSPVertex(lll_seg7_vertex_07016670, 16, 0),
     75     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  2, 0x0),
     76     gsSP2Triangles( 5,  0,  2, 0x0,  5,  2,  6, 0x0),
     77     gsSP2Triangles( 1,  3,  2, 0x0,  2,  4,  7, 0x0),
     78     gsSP2Triangles( 6,  2,  7, 0x0,  4,  8,  9, 0x0),
     79     gsSP2Triangles( 4,  9, 10, 0x0,  3,  8,  4, 0x0),
     80     gsSP2Triangles( 7,  4, 10, 0x0,  7, 10, 11, 0x0),
     81     gsSP2Triangles(12, 13,  0, 0x0, 12,  0,  5, 0x0),
     82     gsSP2Triangles( 0, 14,  1, 0x0,  0, 13, 14, 0x0),
     83     gsSP2Triangles(13, 15, 14, 0x0, 15, 13, 12, 0x0),
     84     gsSPVertex(lll_seg7_vertex_07016770, 8, 0),
     85     gsSP2Triangles( 0,  1,  2, 0x0,  3,  1,  0, 0x0),
     86     gsSP2Triangles( 4,  0,  5, 0x0,  3,  0,  4, 0x0),
     87     gsSP2Triangles( 3,  6,  1, 0x0,  7,  3,  4, 0x0),
     88     gsSPEndDisplayList(),
     89 };
     90 
     91 // 0x07016A30 - 0x07016A78
     92 static const Gfx lll_seg7_dl_07016A30[] = {
     93     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09009000),
     94     gsDPLoadSync(),
     95     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     96     gsSPVertex(lll_seg7_vertex_070167F0, 6, 0),
     97     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     98     gsSP2Triangles( 0,  4,  5, 0x0,  0,  5,  3, 0x0),
     99     gsSPEndDisplayList(),
    100 };
    101 
    102 // 0x07016A78 - 0x07016B00
    103 static const Gfx lll_seg7_dl_07016A78[] = {
    104     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09009800),
    105     gsDPLoadSync(),
    106     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    107     gsSPVertex(lll_seg7_vertex_07016850, 14, 0),
    108     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    109     gsSP2Triangles( 4,  1,  0, 0x0,  4,  5,  1, 0x0),
    110     gsSP2Triangles( 3,  2,  6, 0x0,  3,  6,  7, 0x0),
    111     gsSP2Triangles( 7,  6,  8, 0x0,  7,  8,  9, 0x0),
    112     gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
    113     gsSP2Triangles(12, 11,  5, 0x0, 12,  5,  4, 0x0),
    114     gsSPEndDisplayList(),
    115 };
    116 
    117 // 0x07016B00 - 0x07016B70
    118 const Gfx lll_seg7_dl_07016B00[] = {
    119     gsDPPipeSync(),
    120     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    121     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),
    122     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    123     gsDPTileSync(),
    124     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),
    125     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    126     gsSPDisplayList(lll_seg7_dl_07016930),
    127     gsSPDisplayList(lll_seg7_dl_07016A30),
    128     gsSPDisplayList(lll_seg7_dl_07016A78),
    129     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    130     gsDPPipeSync(),
    131     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    132     gsSPEndDisplayList(),
    133 };