sm64

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

model.inc.c (3823B)


      1 // 0x070079B0 - 0x070079C8
      2 static const Lights1 bbh_seg7_lights_070079B0 = gdSPDefLights1(
      3     0x3f, 0x51, 0x66,
      4     0x9e, 0xcc, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x070079C8 - 0x070079E0
      8 static const Lights1 bbh_seg7_lights_070079C8 = gdSPDefLights1(
      9     0x66, 0x66, 0x66,
     10     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x070079E0 - 0x07007AA0
     14 static const Vtx bbh_seg7_vertex_070079E0[] = {
     15     {{{  1331,    512,   2038}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
     16     {{{  1741,    512,   2038}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     17     {{{  1741,    102,   2038}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     18     {{{  1331,    102,   2038}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
     19     {{{  -409,   1536,   2038}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
     20     {{{     0,   1536,   2038}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     21     {{{     0,   1126,   2038}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     22     {{{  -409,   1126,   2038}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
     23     {{{  1331,   1536,   2038}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
     24     {{{  1741,   1536,   2038}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     25     {{{  1741,   1126,   2038}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     26     {{{  1331,   1126,   2038}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
     27 };
     28 
     29 // 0x07007AA0 - 0x07007AE0
     30 static const Vtx bbh_seg7_vertex_07007AA0[] = {
     31     {{{   512,   1075,   2038}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
     32     {{{   922,    666,   2038}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     33     {{{   512,    666,   2038}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
     34     {{{   922,   1075,   2038}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     35 };
     36 
     37 // 0x07007AE0 - 0x07007B48
     38 static const Gfx bbh_seg7_dl_07007AE0[] = {
     39     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09006000),
     40     gsDPLoadSync(),
     41     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     42     gsSPLight(&bbh_seg7_lights_070079B0.l, 1),
     43     gsSPLight(&bbh_seg7_lights_070079B0.a, 2),
     44     gsSPVertex(bbh_seg7_vertex_070079E0, 12, 0),
     45     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     46     gsSP2Triangles( 4,  5,  6, 0x0,  4,  6,  7, 0x0),
     47     gsSP2Triangles( 8,  9, 10, 0x0,  8, 10, 11, 0x0),
     48     gsSPEndDisplayList(),
     49 };
     50 
     51 // 0x07007B48 - 0x07007B90
     52 static const Gfx bbh_seg7_dl_07007B48[] = {
     53     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bbh_seg7_texture_07001000),
     54     gsDPLoadSync(),
     55     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     56     gsSPLight(&bbh_seg7_lights_070079C8.l, 1),
     57     gsSPLight(&bbh_seg7_lights_070079C8.a, 2),
     58     gsSPVertex(bbh_seg7_vertex_07007AA0, 4, 0),
     59     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     60     gsSPEndDisplayList(),
     61 };
     62 
     63 // 0x07007B90 - 0x07007C08
     64 const Gfx bbh_seg7_dl_07007B90[] = {
     65     gsDPPipeSync(),
     66     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     67     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     68     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),
     69     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     70     gsDPTileSync(),
     71     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),
     72     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     73     gsSPDisplayList(bbh_seg7_dl_07007AE0),
     74     gsSPDisplayList(bbh_seg7_dl_07007B48),
     75     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     76     gsDPPipeSync(),
     77     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     78     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     79     gsSPEndDisplayList(),
     80 };