sm64

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

model.inc.c (7836B)


      1 // 0x0700DE30 - 0x0700DE48
      2 static const Lights1 bob_seg7_lights_0700DE30 = gdSPDefLights1(
      3     0x33, 0x33, 0x33,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700DE48 - 0x0700DF38
      8 static const Vtx bob_seg7_vertex_0700DE48[] = {
      9     {{{  1902,   3835,  -5506}, 0, {     0,    990}, {0xb1, 0x37, 0xae, 0xff}}},
     10     {{{  1814,   4191,  -5455}, 0, {   240,     44}, {0xae, 0xa8, 0xda, 0xff}}},
     11     {{{  1902,   4088,  -5506}, 0, {     0,    316}, {0x87, 0xe3, 0x14, 0xff}}},
     12     {{{  1697,   4091,  -5861}, 0, {   172,    -30}, {0xa1, 0xc1, 0x36, 0xff}}},
     13     {{{  1814,   4191,  -5455}, 0, {   444,   1056}, {0xae, 0xa8, 0xda, 0xff}}},
     14     {{{  1609,   4194,  -5810}, 0, {   444,      0}, {0xe4, 0x86, 0x0f, 0xff}}},
     15     {{{  1902,   4088,  -5506}, 0, {   172,   1058}, {0x87, 0xe3, 0x14, 0xff}}},
     16     {{{  1636,   4191,  -5353}, 0, {   990,   1056}, {0xf2, 0x9d, 0xb3, 0xff}}},
     17     {{{  1431,   4194,  -5708}, 0, {   990,      0}, {0x37, 0x93, 0xdf, 0xff}}},
     18     {{{  1548,   4088,  -5302}, 0, {  1262,   1058}, {0x28, 0xcd, 0x94, 0xff}}},
     19     {{{  1343,   4091,  -5657}, 0, {  1262,    -30}, {0x6a, 0xe1, 0xc3, 0xff}}},
     20     {{{  1343,   4091,  -5657}, 0, {     0,      0}, {0x6a, 0xe1, 0xc3, 0xff}}},
     21     {{{  1548,   4088,  -5302}, 0, {  1604,    -22}, {0x28, 0xcd, 0x94, 0xff}}},
     22     {{{  1548,   3835,  -5302}, 0, {  1604,    990}, {0x3f, 0x33, 0xa0, 0xff}}},
     23     {{{  1343,   3835,  -5657}, 0, {     0,    990}, {0x31, 0x71, 0xe4, 0xff}}},
     24 };
     25 
     26 // 0x0700DF38 - 0x0700E038
     27 static const Vtx bob_seg7_vertex_0700DF38[] = {
     28     {{{  1697,   3835,  -5861}, 0, {     0,    990}, {0x9e, 0x38, 0x38, 0xff}}},
     29     {{{  1902,   3835,  -5506}, 0, {  1604,    990}, {0xb1, 0x37, 0xae, 0xff}}},
     30     {{{  1902,   4088,  -5506}, 0, {  1604,    -22}, {0x87, 0xe3, 0x14, 0xff}}},
     31     {{{  1902,   3835,  -5506}, 0, {     0,    990}, {0xb1, 0x37, 0xae, 0xff}}},
     32     {{{  1548,   4088,  -5302}, 0, {  1058,    316}, {0x28, 0xcd, 0x94, 0xff}}},
     33     {{{  1636,   4191,  -5353}, 0, {   786,     44}, {0xf2, 0x9d, 0xb3, 0xff}}},
     34     {{{  1814,   4191,  -5455}, 0, {   240,     44}, {0xae, 0xa8, 0xda, 0xff}}},
     35     {{{  1548,   3835,  -5302}, 0, {  1058,    990}, {0x3f, 0x33, 0xa0, 0xff}}},
     36     {{{  1343,   3835,  -5657}, 0, {  1058,   1056}, {0x31, 0x71, 0xe4, 0xff}}},
     37     {{{  1902,   3835,  -5506}, 0, {     0,      0}, {0xb1, 0x37, 0xae, 0xff}}},
     38     {{{  1697,   3835,  -5861}, 0, {     0,   1056}, {0x9e, 0x38, 0x38, 0xff}}},
     39     {{{  1548,   3835,  -5302}, 0, {  1058,      0}, {0x3f, 0x33, 0xa0, 0xff}}},
     40     {{{  1697,   4091,  -5861}, 0, {     0,      0}, {0xa1, 0xc1, 0x36, 0xff}}},
     41     {{{   240,   2683,  -5544}, 0, {  3748,   2264}, {0x31, 0x71, 0xe4, 0xff}}},
     42     {{{   445,   2683,  -5189}, 0, {  3748,   1174}, {0x3f, 0x33, 0xa0, 0xff}}},
     43     {{{   801,   2683,  -5393}, 0, {  2658,   1170}, {0xa0, 0x34, 0xc0, 0xff}}},
     44 };
     45 
     46 // 0x0700E038 - 0x0700E128
     47 static const Vtx bob_seg7_vertex_0700E038[] = {
     48     {{{   596,   2939,  -5748}, 0, {  2862,  -1214}, {0x9b, 0xd0, 0x3a, 0xff}}},
     49     {{{   803,   2940,  -5394}, 0, {  2854,   -122}, {0x89, 0xd5, 0x00, 0xff}}},
     50     {{{   712,   3042,  -5342}, 0, {  3136,   -126}, {0xaf, 0xa7, 0xda, 0xff}}},
     51     {{{   507,   3042,  -5697}, 0, {  3136,  -1216}, {0xe5, 0x86, 0x10, 0xff}}},
     52     {{{   534,   3042,  -5240}, 0, {  3680,   -128}, {0xf2, 0x9d, 0xb3, 0xff}}},
     53     {{{   329,   3042,  -5595}, 0, {  3680,  -1218}, {0x37, 0x93, 0xe0, 0xff}}},
     54     {{{   445,   2939,  -5189}, 0, {  3954,   -126}, {0x28, 0xcc, 0x94, 0xff}}},
     55     {{{   240,   2939,  -5544}, 0, {  3954,  -1218}, {0x6a, 0xe0, 0xc3, 0xff}}},
     56     {{{   240,   2939,  -5544}, 0, { -1842,   4564}, {0x6a, 0xe0, 0xc3, 0xff}}},
     57     {{{   445,   2683,  -5189}, 0, {  -206,   5586}, {0x3f, 0x33, 0xa0, 0xff}}},
     58     {{{   240,   2683,  -5544}, 0, { -1842,   5586}, {0x31, 0x71, 0xe4, 0xff}}},
     59     {{{   445,   2939,  -5189}, 0, {  -206,   4564}, {0x28, 0xcc, 0x94, 0xff}}},
     60     {{{   801,   2683,  -5393}, 0, {  2658,   4054}, {0xa0, 0x34, 0xc0, 0xff}}},
     61     {{{   712,   3042,  -5342}, 0, {  2932,   3100}, {0xaf, 0xa7, 0xda, 0xff}}},
     62     {{{   803,   2940,  -5394}, 0, {  2650,   3372}, {0x89, 0xd5, 0x00, 0xff}}},
     63 };
     64 
     65 // 0x0700E128 - 0x0700E1E8
     66 static const Vtx bob_seg7_vertex_0700E128[] = {
     67     {{{   240,   2683,  -5544}, 0, {  3748,   2264}, {0x31, 0x71, 0xe4, 0xff}}},
     68     {{{   801,   2683,  -5393}, 0, {  2658,   1170}, {0xa0, 0x34, 0xc0, 0xff}}},
     69     {{{   596,   2683,  -5748}, 0, {  2658,   2262}, {0xb3, 0x59, 0x2c, 0xff}}},
     70     {{{   596,   2683,  -5748}, 0, { -1836,   5586}, {0xb3, 0x59, 0x2c, 0xff}}},
     71     {{{   801,   2683,  -5393}, 0, {  -200,   5586}, {0xa0, 0x34, 0xc0, 0xff}}},
     72     {{{   596,   2939,  -5748}, 0, { -1836,   4564}, {0x9b, 0xd0, 0x3a, 0xff}}},
     73     {{{   803,   2940,  -5394}, 0, {  -200,   4564}, {0x89, 0xd5, 0x00, 0xff}}},
     74     {{{   801,   2683,  -5393}, 0, {  2658,   4054}, {0xa0, 0x34, 0xc0, 0xff}}},
     75     {{{   445,   2683,  -5189}, 0, {  3748,   4054}, {0x3f, 0x33, 0xa0, 0xff}}},
     76     {{{   445,   2939,  -5189}, 0, {  3748,   3372}, {0x28, 0xcc, 0x94, 0xff}}},
     77     {{{   534,   3042,  -5240}, 0, {  3476,   3100}, {0xf2, 0x9d, 0xb3, 0xff}}},
     78     {{{   712,   3042,  -5342}, 0, {  2932,   3100}, {0xaf, 0xa7, 0xda, 0xff}}},
     79 };
     80 
     81 // 0x0700E1E8 - 0x0700E338
     82 static const Gfx bob_seg7_dl_0700E1E8[] = {
     83     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, generic_09009000),
     84     gsDPLoadSync(),
     85     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     86     gsSPLight(&bob_seg7_lights_0700DE30.l, 1),
     87     gsSPLight(&bob_seg7_lights_0700DE30.a, 2),
     88     gsSPVertex(bob_seg7_vertex_0700DE48, 15, 0),
     89     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     90     gsSP2Triangles( 3,  6,  4, 0x0,  5,  4,  7, 0x0),
     91     gsSP2Triangles( 5,  7,  8, 0x0,  8,  7,  9, 0x0),
     92     gsSP2Triangles( 8,  9, 10, 0x0, 11, 12, 13, 0x0),
     93     gsSP1Triangle(11, 13, 14, 0x0),
     94     gsSPVertex(bob_seg7_vertex_0700DF38, 16, 0),
     95     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     96     gsSP2Triangles( 3,  5,  6, 0x0,  3,  7,  4, 0x0),
     97     gsSP2Triangles( 8,  9, 10, 0x0,  8, 11,  9, 0x0),
     98     gsSP2Triangles( 0,  2, 12, 0x0, 13, 14, 15, 0x0),
     99     gsSPVertex(bob_seg7_vertex_0700E038, 15, 0),
    100     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    101     gsSP2Triangles( 3,  2,  4, 0x0,  3,  4,  5, 0x0),
    102     gsSP2Triangles( 5,  4,  6, 0x0,  5,  6,  7, 0x0),
    103     gsSP2Triangles( 8,  9, 10, 0x0,  8, 11,  9, 0x0),
    104     gsSP1Triangle(12, 13, 14, 0x0),
    105     gsSPVertex(bob_seg7_vertex_0700E128, 12, 0),
    106     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    107     gsSP2Triangles( 4,  6,  5, 0x0,  7,  8,  9, 0x0),
    108     gsSP2Triangles( 7,  9, 10, 0x0,  7, 10, 11, 0x0),
    109     gsSPEndDisplayList(),
    110 };
    111 
    112 // 0x0700E338 - 0x0700E3E0
    113 const Gfx bob_seg7_dl_0700E338[] = {
    114     gsDPPipeSync(),
    115     gsDPSetCycleType(G_CYC_2CYCLE),
    116     gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    117     gsDPSetDepthSource(G_ZS_PIXEL),
    118     gsDPSetFogColor(160, 160, 160, 255),
    119     gsSPFogPosition(980, 1000),
    120     gsSPSetGeometryMode(G_FOG),
    121     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
    122     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),
    123     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    124     gsDPTileSync(),
    125     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),
    126     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    127     gsSPDisplayList(bob_seg7_dl_0700E1E8),
    128     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    129     gsDPPipeSync(),
    130     gsDPSetCycleType(G_CYC_1CYCLE),
    131     gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
    132     gsSPClearGeometryMode(G_FOG),
    133     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    134     gsSPEndDisplayList(),
    135 };