sm64

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

model.inc.c (4971B)


      1 // 0x0700AED8 - 0x0700AEF0
      2 static const Lights1 ttc_seg7_lights_0700AED8 = gdSPDefLights1(
      3     0x7f, 0x7f, 0x7f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700AEF0 - 0x0700AFE0
      8 static const Vtx ttc_seg7_vertex_0700AEF0[] = {
      9     {{{  -861,  -8703,   2081}, 0, {  5078,  -5012}, {0x20, 0x00, 0x86, 0x00}}},
     10     {{{  -861,  -8191,   2081}, 0, {  5078,  -7186}, {0x40, 0x00, 0x93, 0x32}}},
     11     {{{   862,  -8191,   2081}, 0, {   -30,  -7186}, {0xe0, 0x00, 0x86, 0x32}}},
     12     {{{  2081,  -8703,    862}, 0, {  5078,  -5012}, {0x86, 0x00, 0xe0, 0x00}}},
     13     {{{  2081,  -8191,   -861}, 0, {   -30,  -7186}, {0x86, 0x00, 0x20, 0x32}}},
     14     {{{  2081,  -8703,   -861}, 0, {   -30,  -5012}, {0x93, 0x00, 0x40, 0x00}}},
     15     {{{  2081,  -8191,    862}, 0, {  5078,  -7186}, {0x93, 0x00, 0xc0, 0x32}}},
     16     {{{   862,  -8703,   2081}, 0, {  5078,  -5012}, {0xc0, 0x00, 0x93, 0x00}}},
     17     {{{  2081,  -8191,    862}, 0, {   -30,  -7186}, {0x93, 0x00, 0xc0, 0x32}}},
     18     {{{  2081,  -8703,    862}, 0, {   -30,  -5012}, {0x86, 0x00, 0xe0, 0x00}}},
     19     {{{   862,  -8191,   2081}, 0, {  5078,  -7186}, {0xe0, 0x00, 0x86, 0x32}}},
     20     {{{ -2080,  -8703,    862}, 0, {  5078,  -5012}, {0x6d, 0x00, 0xc0, 0x00}}},
     21     {{{ -2080,  -8191,    862}, 0, {  5078,  -7186}, {0x7a, 0x00, 0xe0, 0x32}}},
     22     {{{  -861,  -8191,   2081}, 0, {   -30,  -7186}, {0x40, 0x00, 0x93, 0x32}}},
     23     {{{  -861,  -8703,   2081}, 0, {   -30,  -5012}, {0x20, 0x00, 0x86, 0x00}}},
     24 };
     25 
     26 // 0x0700AFE0 - 0x0700B0D0
     27 static const Vtx ttc_seg7_vertex_0700AFE0[] = {
     28     {{{  -861,  -8703,  -2080}, 0, {  5078,  -5012}, {0x40, 0x00, 0x6d, 0x00}}},
     29     {{{  -861,  -8191,  -2080}, 0, {  5078,  -7186}, {0x20, 0x00, 0x7a, 0x32}}},
     30     {{{ -2080,  -8191,   -861}, 0, {   -30,  -7186}, {0x6d, 0x00, 0x40, 0x32}}},
     31     {{{  -861,  -8703,   2081}, 0, {  5078,  -5012}, {0x20, 0x00, 0x86, 0x00}}},
     32     {{{   862,  -8191,   2081}, 0, {   -30,  -7186}, {0xe0, 0x00, 0x86, 0x32}}},
     33     {{{   862,  -8703,   2081}, 0, {   -30,  -5012}, {0xc0, 0x00, 0x93, 0x00}}},
     34     {{{   862,  -8703,  -2080}, 0, {  5078,  -5012}, {0xe0, 0x00, 0x7a, 0x00}}},
     35     {{{   862,  -8191,  -2080}, 0, {  5078,  -7186}, {0xc0, 0x00, 0x6d, 0x32}}},
     36     {{{  -861,  -8191,  -2080}, 0, {   -30,  -7186}, {0x20, 0x00, 0x7a, 0x32}}},
     37     {{{  -861,  -8703,  -2080}, 0, {   -30,  -5012}, {0x40, 0x00, 0x6d, 0x00}}},
     38     {{{  2081,  -8703,   -861}, 0, {  5078,  -5012}, {0x93, 0x00, 0x40, 0x00}}},
     39     {{{   862,  -8191,  -2080}, 0, {   -30,  -7186}, {0xc0, 0x00, 0x6d, 0x32}}},
     40     {{{   862,  -8703,  -2080}, 0, {   -30,  -5012}, {0xe0, 0x00, 0x7a, 0x00}}},
     41     {{{  2081,  -8191,   -861}, 0, {  5078,  -7186}, {0x86, 0x00, 0x20, 0x32}}},
     42     {{{ -2080,  -8703,   -861}, 0, {   -30,  -5012}, {0x7a, 0x00, 0x20, 0x00}}},
     43 };
     44 
     45 // 0x0700B0D0 - 0x0700B110
     46 static const Vtx ttc_seg7_vertex_0700B0D0[] = {
     47     {{{ -2080,  -8703,   -861}, 0, {  5078,  -5012}, {0x7a, 0x00, 0x20, 0x00}}},
     48     {{{ -2080,  -8191,    862}, 0, {     0,  -7186}, {0x7a, 0x00, 0xe0, 0x32}}},
     49     {{{ -2080,  -8703,    862}, 0, {     0,  -5012}, {0x6d, 0x00, 0xc0, 0x00}}},
     50     {{{ -2080,  -8191,   -861}, 0, {  5078,  -7186}, {0x6d, 0x00, 0x40, 0x32}}},
     51 };
     52 
     53 // 0x0700B110 - 0x0700B1D8
     54 static const Gfx ttc_seg7_dl_0700B110[] = {
     55     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09002800),
     56     gsDPLoadSync(),
     57     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     58     gsSPLight(&ttc_seg7_lights_0700AED8.l, 1),
     59     gsSPLight(&ttc_seg7_lights_0700AED8.a, 2),
     60     gsSPVertex(ttc_seg7_vertex_0700AEF0, 15, 0),
     61     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     62     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
     63     gsSP2Triangles( 7, 10,  8, 0x0, 11, 12, 13, 0x0),
     64     gsSP1Triangle(11, 13, 14, 0x0),
     65     gsSPVertex(ttc_seg7_vertex_0700AFE0, 15, 0),
     66     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     67     gsSP2Triangles( 6,  7,  8, 0x0,  6,  8,  9, 0x0),
     68     gsSP2Triangles(10, 11, 12, 0x0, 10, 13, 11, 0x0),
     69     gsSP1Triangle( 0,  2, 14, 0x0),
     70     gsSPVertex(ttc_seg7_vertex_0700B0D0, 4, 0),
     71     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     72     gsSPEndDisplayList(),
     73 };
     74 
     75 // 0x0700B1D8 - 0x0700B238
     76 const Gfx ttc_seg7_dl_0700B1D8[] = {
     77     gsDPPipeSync(),
     78     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     79     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),
     80     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     81     gsDPTileSync(),
     82     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),
     83     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     84     gsSPDisplayList(ttc_seg7_dl_0700B110),
     85     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     86     gsDPPipeSync(),
     87     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     88     gsSPEndDisplayList(),
     89 };