sm64

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

model.inc.c (5275B)


      1 // 0x0701F378 - 0x0701F390
      2 static const Lights1 bbh_seg7_lights_0701F378 = gdSPDefLights1(
      3     0x66, 0x66, 0x66,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0701F390 - 0x0701F3D0
      8 static const Vtx bbh_seg7_vertex_0701F390[] = {
      9     {{{   307,   -101,    256}, 0, {   698,    260}, {0x00, 0x81, 0x00, 0xff}}},
     10     {{{  -306,   -101,    256}, 0, {   260,    260}, {0x00, 0x81, 0x00, 0xff}}},
     11     {{{  -306,   -101,   -255}, 0, {   260,    624}, {0x00, 0x81, 0x00, 0xff}}},
     12     {{{   307,   -101,   -255}, 0, {   698,    624}, {0x00, 0x81, 0x00, 0xff}}},
     13 };
     14 
     15 // 0x0701F3D0 - 0x0701F4D0
     16 static const Vtx bbh_seg7_vertex_0701F3D0[] = {
     17     {{{   307,      0,    256}, 0, {  2522,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     18     {{{   307,   -101,   -255}, 0, {     0,    988}, {0x7f, 0x00, 0x00, 0xff}}},
     19     {{{   307,      0,   -255}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     20     {{{   307,      0,   -255}, 0, {     0,      0}, {0x00, 0x00, 0x81, 0xff}}},
     21     {{{  -306,   -101,   -255}, 0, {  3034,    992}, {0x00, 0x00, 0x81, 0xff}}},
     22     {{{  -306,      0,   -255}, 0, {  3034,      0}, {0x00, 0x00, 0x81, 0xff}}},
     23     {{{   307,   -101,   -255}, 0, {     0,    992}, {0x00, 0x00, 0x81, 0xff}}},
     24     {{{  -306,      0,   -255}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0xff}}},
     25     {{{  -306,   -101,   -255}, 0, {     0,    988}, {0x81, 0x00, 0x00, 0xff}}},
     26     {{{  -306,   -101,    256}, 0, {  2522,    988}, {0x81, 0x00, 0x00, 0xff}}},
     27     {{{  -306,      0,    256}, 0, {  2522,      0}, {0x81, 0x00, 0x00, 0xff}}},
     28     {{{  -306,      0,    256}, 0, {  3034,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     29     {{{  -306,   -101,    256}, 0, {  3034,    992}, {0x00, 0x00, 0x7f, 0xff}}},
     30     {{{   307,   -101,    256}, 0, {     0,    992}, {0x00, 0x00, 0x7f, 0xff}}},
     31     {{{   307,      0,    256}, 0, {     0,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     32     {{{   307,   -101,    256}, 0, {  2522,    988}, {0x7f, 0x00, 0x00, 0xff}}},
     33 };
     34 
     35 // 0x0701F4D0 - 0x0701F510
     36 static const Vtx bbh_seg7_vertex_0701F4D0[] = {
     37     {{{   307,      0,   -255}, 0, {  5080,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     38     {{{  -306,      0,    256}, 0, {     0,  -5142}, {0x00, 0x7f, 0x00, 0xff}}},
     39     {{{   307,      0,    256}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     40     {{{  -306,      0,   -255}, 0, {  5076,  -5142}, {0x00, 0x7f, 0x00, 0xff}}},
     41 };
     42 
     43 // 0x0701F510 - 0x0701F558
     44 static const Gfx bbh_seg7_dl_0701F510[] = {
     45     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09008800),
     46     gsDPLoadSync(),
     47     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     48     gsSPLight(&bbh_seg7_lights_0701F378.l, 1),
     49     gsSPLight(&bbh_seg7_lights_0701F378.a, 2),
     50     gsSPVertex(bbh_seg7_vertex_0701F390, 4, 0),
     51     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     52     gsSPEndDisplayList(),
     53 };
     54 
     55 // 0x0701F558 - 0x0701F5C0
     56 static const Gfx bbh_seg7_dl_0701F558[] = {
     57     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09005000),
     58     gsDPLoadSync(),
     59     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     60     gsSPVertex(bbh_seg7_vertex_0701F3D0, 16, 0),
     61     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     62     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
     63     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
     64     gsSP2Triangles(11, 13, 14, 0x0,  0, 15,  1, 0x0),
     65     gsSPEndDisplayList(),
     66 };
     67 
     68 // 0x0701F5C0 - 0x0701F5F8
     69 static const Gfx bbh_seg7_dl_0701F5C0[] = {
     70     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, spooky_09009000),
     71     gsDPLoadSync(),
     72     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
     73     gsSPVertex(bbh_seg7_vertex_0701F4D0, 4, 0),
     74     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     75     gsSPEndDisplayList(),
     76 };
     77 
     78 // 0x0701F5F8 - 0x0701F6A8
     79 const Gfx bbh_seg7_dl_0701F5F8[] = {
     80     gsDPPipeSync(),
     81     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     82     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     83     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),
     84     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     85     gsDPTileSync(),
     86     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),
     87     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     88     gsSPDisplayList(bbh_seg7_dl_0701F510),
     89     gsDPTileSync(),
     90     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
     91     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
     92     gsSPDisplayList(bbh_seg7_dl_0701F558),
     93     gsDPTileSync(),
     94     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD),
     95     gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     96     gsSPDisplayList(bbh_seg7_dl_0701F5C0),
     97     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     98     gsDPPipeSync(),
     99     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    100     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    101     gsSPEndDisplayList(),
    102 };