sm64

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

model.inc.c (6363B)


      1 // 0x0700B4F0 - 0x0700B508
      2 static const Lights1 bitdw_seg7_lights_0700B4F0 = gdSPDefLights1(
      3     0x39, 0x6f, 0x5d,
      4     0x79, 0xeb, 0xc5, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700B508 - 0x0700B5F8
      8 static const Vtx bitdw_seg7_vertex_0700B508[] = {
      9     {{{     0,    389,    -50}, 0, {   938,      2}, {0xd5, 0x0f, 0x76, 0xff}}},
     10     {{{  -101,    102,    -50}, 0, {  -542,    650}, {0xd5, 0x0f, 0x76, 0xff}}},
     11     {{{     0,      0,      0}, 0, {     0,    650}, {0xd5, 0x0f, 0x76, 0xff}}},
     12     {{{     0,      0,      0}, 0, {     0,    650}, {0x2a, 0x0f, 0x76, 0xff}}},
     13     {{{   102,    102,    -50}, 0, {   990,    308}, {0x2a, 0x0f, 0x76, 0xff}}},
     14     {{{     0,    389,    -50}, 0, {   938,      2}, {0x2a, 0x0f, 0x76, 0xff}}},
     15     {{{     0,      0,      0}, 0, {     0,    650}, {0xf1, 0x2a, 0x76, 0xff}}},
     16     {{{  -101,    102,    -50}, 0, {  -542,    650}, {0xf1, 0x2a, 0x76, 0xff}}},
     17     {{{  -388,      0,    -50}, 0, { -2942,   1294}, {0xf1, 0x2a, 0x76, 0xff}}},
     18     {{{  -388,      0,    -50}, 0, { -2942,   1294}, {0xf1, 0xd5, 0x76, 0xff}}},
     19     {{{  -101,   -101,    -50}, 0, { -1052,    990}, {0xf1, 0xd5, 0x76, 0xff}}},
     20     {{{     0,      0,      0}, 0, {     0,    650}, {0xf1, 0xd5, 0x76, 0xff}}},
     21     {{{   389,      0,    -50}, 0, {  2880,      2}, {0x0f, 0x2a, 0x76, 0xff}}},
     22     {{{   102,    102,    -50}, 0, {   990,    308}, {0x0f, 0x2a, 0x76, 0xff}}},
     23     {{{     0,      0,      0}, 0, {     0,    650}, {0x0f, 0x2a, 0x76, 0xff}}},
     24 };
     25 
     26 // 0x0700B5F8 - 0x0700B6E8
     27 static const Vtx bitdw_seg7_vertex_0700B5F8[] = {
     28     {{{     0,      0,      0}, 0, {     0,    650}, {0x0f, 0xd5, 0x76, 0xff}}},
     29     {{{   102,   -101,    -50}, 0, {   480,    650}, {0x0f, 0xd5, 0x76, 0xff}}},
     30     {{{   389,      0,    -50}, 0, {  2880,      2}, {0x0f, 0xd5, 0x76, 0xff}}},
     31     {{{     0,   -388,    -50}, 0, { -1000,   1294}, {0x2a, 0xf1, 0x76, 0xff}}},
     32     {{{   102,   -101,    -50}, 0, {   480,    650}, {0x2a, 0xf1, 0x76, 0xff}}},
     33     {{{     0,      0,      0}, 0, {     0,    650}, {0x2a, 0xf1, 0x76, 0xff}}},
     34     {{{     0,      0,      0}, 0, {     0,    650}, {0xd5, 0xf1, 0x76, 0xff}}},
     35     {{{  -101,   -101,    -50}, 0, { -1052,    990}, {0xd5, 0xf1, 0x76, 0xff}}},
     36     {{{     0,   -388,    -50}, 0, { -1000,   1294}, {0xd5, 0xf1, 0x76, 0xff}}},
     37     {{{     0,    389,    -50}, 0, {   938,      2}, {0x2b, 0x0f, 0x8a, 0xff}}},
     38     {{{   102,    102,    -50}, 0, {   990,    308}, {0x2b, 0x0f, 0x8a, 0xff}}},
     39     {{{     0,      0,   -101}, 0, {     0,    650}, {0x2b, 0x0f, 0x8a, 0xff}}},
     40     {{{     0,      0,   -101}, 0, {     0,    650}, {0x0f, 0x2b, 0x8a, 0xff}}},
     41     {{{   102,    102,    -50}, 0, {   990,    308}, {0x0f, 0x2b, 0x8a, 0xff}}},
     42     {{{   389,      0,    -50}, 0, {  2880,      2}, {0x0f, 0x2b, 0x8a, 0xff}}},
     43 };
     44 
     45 // 0x0700B6E8 - 0x0700B7D8
     46 static const Vtx bitdw_seg7_vertex_0700B6E8[] = {
     47     {{{   389,      0,    -50}, 0, {  2880,      2}, {0x0f, 0xd4, 0x8a, 0xff}}},
     48     {{{   102,   -101,    -50}, 0, {   480,    650}, {0x0f, 0xd4, 0x8a, 0xff}}},
     49     {{{     0,      0,   -101}, 0, {     0,    650}, {0x0f, 0xd4, 0x8a, 0xff}}},
     50     {{{     0,      0,   -101}, 0, {     0,    650}, {0x2b, 0xf1, 0x8a, 0xff}}},
     51     {{{   102,   -101,    -50}, 0, {   480,    650}, {0x2b, 0xf1, 0x8a, 0xff}}},
     52     {{{     0,   -388,    -50}, 0, { -1000,   1294}, {0x2b, 0xf1, 0x8a, 0xff}}},
     53     {{{  -388,      0,    -50}, 0, { -2942,   1294}, {0xf1, 0x2b, 0x8a, 0xff}}},
     54     {{{  -101,    102,    -50}, 0, {  -542,    650}, {0xf1, 0x2b, 0x8a, 0xff}}},
     55     {{{     0,      0,   -101}, 0, {     0,    650}, {0xf1, 0x2b, 0x8a, 0xff}}},
     56     {{{     0,      0,   -101}, 0, {     0,    650}, {0xd4, 0x0f, 0x8a, 0xff}}},
     57     {{{  -101,    102,    -50}, 0, {  -542,    650}, {0xd4, 0x0f, 0x8a, 0xff}}},
     58     {{{     0,    389,    -50}, 0, {   938,      2}, {0xd4, 0x0f, 0x8a, 0xff}}},
     59     {{{     0,   -388,    -50}, 0, { -1000,   1294}, {0xd4, 0xf1, 0x8a, 0xff}}},
     60     {{{  -101,   -101,    -50}, 0, { -1052,    990}, {0xd4, 0xf1, 0x8a, 0xff}}},
     61     {{{     0,      0,   -101}, 0, {     0,    650}, {0xd4, 0xf1, 0x8a, 0xff}}},
     62 };
     63 
     64 // 0x0700B7D8 - 0x0700B808
     65 static const Vtx bitdw_seg7_vertex_0700B7D8[] = {
     66     {{{     0,      0,   -101}, 0, {     0,    650}, {0xf1, 0xd4, 0x8a, 0xff}}},
     67     {{{  -101,   -101,    -50}, 0, { -1052,    990}, {0xf1, 0xd4, 0x8a, 0xff}}},
     68     {{{  -388,      0,    -50}, 0, { -2942,   1294}, {0xf1, 0xd4, 0x8a, 0xff}}},
     69 };
     70 
     71 // 0x0700B808 - 0x0700B8D8
     72 static const Gfx bitdw_seg7_dl_0700B808[] = {
     73     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09000800),
     74     gsDPLoadSync(),
     75     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     76     gsSPLight(&bitdw_seg7_lights_0700B4F0.l, 1),
     77     gsSPLight(&bitdw_seg7_lights_0700B4F0.a, 2),
     78     gsSPVertex(bitdw_seg7_vertex_0700B508, 15, 0),
     79     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     80     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
     81     gsSP1Triangle(12, 13, 14, 0x0),
     82     gsSPVertex(bitdw_seg7_vertex_0700B5F8, 15, 0),
     83     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     84     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
     85     gsSP1Triangle(12, 13, 14, 0x0),
     86     gsSPVertex(bitdw_seg7_vertex_0700B6E8, 15, 0),
     87     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     88     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
     89     gsSP1Triangle(12, 13, 14, 0x0),
     90     gsSPVertex(bitdw_seg7_vertex_0700B7D8, 3, 0),
     91     gsSP1Triangle( 0,  1,  2, 0x0),
     92     gsSPEndDisplayList(),
     93 };
     94 
     95 // 0x0700B8D8 - 0x0700B948
     96 const Gfx bitdw_seg7_dl_0700B8D8[] = {
     97     gsDPPipeSync(),
     98     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     99     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    100     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),
    101     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    102     gsDPTileSync(),
    103     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),
    104     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    105     gsSPDisplayList(bitdw_seg7_dl_0700B808),
    106     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    107     gsDPPipeSync(),
    108     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    109     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    110     gsSPEndDisplayList(),
    111 };