sm64

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

model.inc.c (3969B)


      1 // 0x07004740 - 0x07004758
      2 static const Lights1 bowser_3_seg7_lights_07004740 = gdSPDefLights1(
      3     0x3f, 0x3f, 0x3f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07004758 - 0x07004848
      8 static const Vtx bowser_3_seg7_vertex_07004758[] = {
      9     {{{   205,    256,      0}, 0, {   478,    478}, {0x4d, 0x3e, 0xb2, 0xff}}},
     10     {{{     0,    256,   -204}, 0, {   734,    478}, {0x4d, 0x3e, 0xb2, 0xff}}},
     11     {{{     0,    512,      0}, 0, {   606,      0}, {0x4d, 0x3e, 0xb2, 0xff}}},
     12     {{{     0,    256,    205}, 0, {   224,    480}, {0x4e, 0x3e, 0x4e, 0xff}}},
     13     {{{   205,    256,      0}, 0, {   478,    478}, {0x4e, 0x3e, 0x4e, 0xff}}},
     14     {{{     0,    512,      0}, 0, {   352,      0}, {0x4e, 0x3e, 0x4e, 0xff}}},
     15     {{{   205,    256,      0}, 0, {   478,    478}, {0x4e, 0xc2, 0x4e, 0xff}}},
     16     {{{     0,    256,    205}, 0, {   224,    480}, {0x4e, 0xc2, 0x4e, 0xff}}},
     17     {{{     0,      0,      0}, 0, {   352,    990}, {0x4e, 0xc2, 0x4e, 0xff}}},
     18     {{{     0,    256,   -204}, 0, {   734,    478}, {0x4d, 0xc2, 0xb2, 0xff}}},
     19     {{{   205,    256,      0}, 0, {   478,    478}, {0x4d, 0xc2, 0xb2, 0xff}}},
     20     {{{     0,      0,      0}, 0, {   606,    990}, {0x4d, 0xc2, 0xb2, 0xff}}},
     21     {{{  -204,    256,      0}, 0, {     0,    480}, {0xb2, 0x3e, 0x4d, 0xff}}},
     22     {{{     0,    256,    205}, 0, {   224,    480}, {0xb2, 0x3e, 0x4d, 0xff}}},
     23     {{{     0,    512,      0}, 0, {    96,      0}, {0xb2, 0x3e, 0x4d, 0xff}}},
     24 };
     25 
     26 // 0x07004848 - 0x070048D8
     27 static const Vtx bowser_3_seg7_vertex_07004848[] = {
     28     {{{     0,    256,    205}, 0, {   224,    480}, {0xb2, 0xc2, 0x4d, 0xff}}},
     29     {{{  -204,    256,      0}, 0, {     0,    480}, {0xb2, 0xc2, 0x4d, 0xff}}},
     30     {{{     0,      0,      0}, 0, {    96,    990}, {0xb2, 0xc2, 0x4d, 0xff}}},
     31     {{{     0,    256,   -204}, 0, {   734,    478}, {0xb2, 0x3e, 0xb2, 0xff}}},
     32     {{{  -204,    256,      0}, 0, {   990,    480}, {0xb2, 0x3e, 0xb2, 0xff}}},
     33     {{{     0,    512,      0}, 0, {   862,      0}, {0xb2, 0x3e, 0xb2, 0xff}}},
     34     {{{  -204,    256,      0}, 0, {   990,    480}, {0xb2, 0xc2, 0xb2, 0xff}}},
     35     {{{     0,    256,   -204}, 0, {   734,    478}, {0xb2, 0xc2, 0xb2, 0xff}}},
     36     {{{     0,      0,      0}, 0, {   862,    990}, {0xb2, 0xc2, 0xb2, 0xff}}},
     37 };
     38 
     39 // 0x070048D8 - 0x07004958
     40 static const Gfx bowser_3_seg7_dl_070048D8[] = {
     41     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bowser_3_seg7_texture_07000000),
     42     gsDPLoadSync(),
     43     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     44     gsSPLight(&bowser_3_seg7_lights_07004740.l, 1),
     45     gsSPLight(&bowser_3_seg7_lights_07004740.a, 2),
     46     gsSPVertex(bowser_3_seg7_vertex_07004758, 15, 0),
     47     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     48     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
     49     gsSP1Triangle(12, 13, 14, 0x0),
     50     gsSPVertex(bowser_3_seg7_vertex_07004848, 9, 0),
     51     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     52     gsSP1Triangle( 6,  7,  8, 0x0),
     53     gsSPEndDisplayList(),
     54 };
     55 
     56 // 0x07004958 - 0x070049C8
     57 const Gfx bowser_3_seg7_dl_07004958[] = {
     58     gsDPPipeSync(),
     59     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     60     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     61     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),
     62     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     63     gsDPTileSync(),
     64     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),
     65     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     66     gsSPDisplayList(bowser_3_seg7_dl_070048D8),
     67     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     68     gsDPPipeSync(),
     69     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     70     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     71     gsSPEndDisplayList(),
     72 };