sm64

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

1.inc.c (6050B)


      1 // 0x0700B130 - 0x0700B148
      2 static const Lights1 ttm_seg7_lights_0700B130 = gdSPDefLights1(
      3     0x4c, 0x4c, 0x4c,
      4     0x99, 0x99, 0x99, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700B148 - 0x0700B248
      8 static const Vtx ttm_seg7_vertex_0700B148[] = {
      9     {{{   189,   1503,   -188}, 0, {   114,   1692}, {0x4b, 0x00, 0x9b, 0xff}}},
     10     {{{   288,   1603,    -23}, 0, {   404,   1134}, {0x76, 0x2a, 0xef, 0xff}}},
     11     {{{   288,   1503,    -23}, 0, {   114,   1134}, {0x7d, 0x00, 0xee, 0xff}}},
     12     {{{   189,   1604,   -188}, 0, {   406,   1692}, {0x3a, 0x51, 0xb2, 0xff}}},
     13     {{{  -161,   1503,   -136}, 0, {   810,    684}, {0x9b, 0x00, 0xb5, 0xff}}},
     14     {{{     3,   1604,   -235}, 0, {   534,    478}, {0xee, 0x2a, 0x8a, 0xff}}},
     15     {{{     3,   1503,   -235}, 0, {   534,    682}, {0xee, 0x00, 0x83, 0xff}}},
     16     {{{  -161,   1604,   -136}, 0, {   810,    480}, {0xaf, 0x4d, 0xc4, 0xff}}},
     17     {{{   189,   1503,   -188}, 0, {   142,    684}, {0x4b, 0x00, 0x9b, 0xff}}},
     18     {{{   189,   1604,   -188}, 0, {   142,    480}, {0x3a, 0x51, 0xb2, 0xff}}},
     19     {{{  -144,   1653,     45}, 0, {  -110,    234}, {0xd4, 0x76, 0x06, 0xff}}},
     20     {{{  -208,   1606,     49}, 0, {    18,    292}, {0x89, 0x26, 0x11, 0xff}}},
     21     {{{  -109,   1606,    214}, 0, {   174,   -216}, {0xc7, 0x3e, 0x5d, 0xff}}},
     22     {{{  -161,   1604,   -136}, 0, {  -130,    802}, {0xaf, 0x4d, 0xc4, 0xff}}},
     23     {{{  -161,   1503,   -136}, 0, {   156,    890}, {0x9b, 0x00, 0xb5, 0xff}}},
     24     {{{  -208,   1503,     49}, 0, {   312,    382}, {0x83, 0x00, 0x12, 0xff}}},
     25 };
     26 
     27 // 0x0700B248 - 0x0700B338
     28 static const Vtx ttm_seg7_vertex_0700B248[] = {
     29     {{{  -109,   1503,    214}, 0, {   468,   -126}, {0xa8, 0x00, 0x5a, 0xff}}},
     30     {{{  -208,   1606,     49}, 0, {    18,    292}, {0x89, 0x26, 0x11, 0xff}}},
     31     {{{  -208,   1503,     49}, 0, {   312,    382}, {0x83, 0x00, 0x12, 0xff}}},
     32     {{{  -109,   1606,    214}, 0, {   174,   -216}, {0xc7, 0x3e, 0x5d, 0xff}}},
     33     {{{   241,   1503,    162}, 0, {  1068,    752}, {0x6f, 0x00, 0x3d, 0xff}}},
     34     {{{   241,   1605,    162}, 0, {  1068,    480}, {0x50, 0x42, 0x48, 0xff}}},
     35     {{{    76,   1503,    261}, 0, {   586,    752}, {0x12, 0x00, 0x7d, 0xff}}},
     36     {{{    76,   1605,    261}, 0, {   586,    480}, {0x0f, 0x3b, 0x6e, 0xff}}},
     37     {{{  -109,   1606,    214}, 0, {   104,    480}, {0xc7, 0x3e, 0x5d, 0xff}}},
     38     {{{  -109,   1503,    214}, 0, {   104,    752}, {0xa8, 0x00, 0x5a, 0xff}}},
     39     {{{   206,   1653,     -5}, 0, {   346,   -154}, {0x27, 0x78, 0xfb, 0xff}}},
     40     {{{   241,   1605,    162}, 0, {  -102,     68}, {0x50, 0x42, 0x48, 0xff}}},
     41     {{{   288,   1603,    -23}, 0, {   454,     74}, {0x76, 0x2a, 0xef, 0xff}}},
     42     {{{   241,   1503,    162}, 0, {  -104,    332}, {0x6f, 0x00, 0x3d, 0xff}}},
     43     {{{   288,   1503,    -23}, 0, {   454,    332}, {0x7d, 0x00, 0xee, 0xff}}},
     44 };
     45 
     46 // 0x0700B338 - 0x0700B3F8
     47 static const Vtx ttm_seg7_vertex_0700B338[] = {
     48     {{{     5,   1653,   -155}, 0, {   458,     40}, {0xfb, 0x7a, 0xdf, 0xff}}},
     49     {{{  -161,   1604,   -136}, 0, {    32,     24}, {0xaf, 0x4d, 0xc4, 0xff}}},
     50     {{{  -144,   1653,     45}, 0, {     8,    492}, {0xd4, 0x76, 0x06, 0xff}}},
     51     {{{   189,   1604,   -188}, 0, {   936,     24}, {0x3a, 0x51, 0xb2, 0xff}}},
     52     {{{     3,   1604,   -235}, 0, {   484,   -162}, {0xee, 0x2a, 0x8a, 0xff}}},
     53     {{{   206,   1653,     -5}, 0, {   910,    492}, {0x27, 0x78, 0xfb, 0xff}}},
     54     {{{    57,   1653,    195}, 0, {   458,    942}, {0x04, 0x79, 0x24, 0xff}}},
     55     {{{  -109,   1606,    214}, 0, {    32,    928}, {0xc7, 0x3e, 0x5d, 0xff}}},
     56     {{{  -208,   1606,     49}, 0, {  -154,    476}, {0x89, 0x26, 0x11, 0xff}}},
     57     {{{    76,   1605,    261}, 0, {   484,   1112}, {0x0f, 0x3b, 0x6e, 0xff}}},
     58     {{{   241,   1605,    162}, 0, {   936,    928}, {0x50, 0x42, 0x48, 0xff}}},
     59     {{{   288,   1603,    -23}, 0, {  1122,    476}, {0x76, 0x2a, 0xef, 0xff}}},
     60 };
     61 
     62 // 0x0700B3F8 - 0x0700B530
     63 static const Gfx ttm_seg7_dl_0700B3F8[] = {
     64     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004800),
     65     gsDPLoadSync(),
     66     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     67     gsSPLight(&ttm_seg7_lights_0700B130.l, 1),
     68     gsSPLight(&ttm_seg7_lights_0700B130.a, 2),
     69     gsSPVertex(ttm_seg7_vertex_0700B148, 16, 0),
     70     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     71     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
     72     gsSP2Triangles( 5,  8,  6, 0x0,  5,  9,  8, 0x0),
     73     gsSP2Triangles(10, 11, 12, 0x0, 11, 13, 14, 0x0),
     74     gsSP1Triangle(11, 14, 15, 0x0),
     75     gsSPVertex(ttm_seg7_vertex_0700B248, 15, 0),
     76     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     77     gsSP2Triangles( 4,  5,  6, 0x0,  5,  7,  6, 0x0),
     78     gsSP2Triangles( 6,  8,  9, 0x0,  6,  7,  8, 0x0),
     79     gsSP2Triangles(10, 11, 12, 0x0, 12, 13, 14, 0x0),
     80     gsSP1Triangle(12, 11, 13, 0x0),
     81     gsSPVertex(ttm_seg7_vertex_0700B338, 12, 0),
     82     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  4, 0x0),
     83     gsSP2Triangles( 5,  3,  0, 0x0,  0,  6,  5, 0x0),
     84     gsSP2Triangles( 0,  2,  6, 0x0,  0,  4,  1, 0x0),
     85     gsSP2Triangles( 2,  7,  6, 0x0,  2,  1,  8, 0x0),
     86     gsSP2Triangles( 6,  9, 10, 0x0,  6, 10,  5, 0x0),
     87     gsSP2Triangles( 6,  7,  9, 0x0,  5, 11,  3, 0x0),
     88     gsSPEndDisplayList(),
     89 };
     90 
     91 // 0x0700B530 - 0x0700B590
     92 const Gfx ttm_seg7_dl_0700B530[] = {
     93     gsDPPipeSync(),
     94     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     95     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),
     96     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     97     gsDPTileSync(),
     98     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     99     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    100     gsSPDisplayList(ttm_seg7_dl_0700B3F8),
    101     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    102     gsDPPipeSync(),
    103     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    104     gsSPEndDisplayList(),
    105 };