sm64

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

model.inc.c (4490B)


      1 // 0x07017938 - 0x070179F8
      2 static const Vtx lll_seg7_vertex_07017938[] = {
      3     {{{  -127,      0,   -127}, 0, {   990,    990}, {0x00, 0x00, 0x81, 0xff}}},
      4     {{{  -127,    307,   -127}, 0, {   990,      0}, {0x00, 0x00, 0x81, 0xff}}},
      5     {{{   128,    307,   -127}, 0, {   138,      0}, {0x00, 0x00, 0x81, 0xff}}},
      6     {{{   128,      0,   -127}, 0, {   138,    990}, {0x00, 0x00, 0x81, 0xff}}},
      7     {{{  -127,      0,    128}, 0, {   820,    990}, {0x81, 0x00, 0x00, 0xff}}},
      8     {{{  -127,    307,    128}, 0, {   820,      0}, {0x81, 0x00, 0x00, 0xff}}},
      9     {{{  -127,    307,   -127}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0xff}}},
     10     {{{  -127,      0,   -127}, 0, {     0,    990}, {0x81, 0x00, 0x00, 0xff}}},
     11     {{{   128,      0,   -127}, 0, {   820,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     12     {{{   128,    307,    128}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     13     {{{   128,      0,    128}, 0, {     0,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     14     {{{   128,    307,   -127}, 0, {   820,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     15 };
     16 
     17 // 0x070179F8 - 0x07017A38
     18 static const Vtx lll_seg7_vertex_070179F8[] = {
     19     {{{  -127,    307,   -127}, 0, {     0,      0}, {0x00, 0x7f, 0x00, 0xff}}},
     20     {{{   128,    307,    128}, 0, {   820,    820}, {0x00, 0x7f, 0x00, 0xff}}},
     21     {{{   128,    307,   -127}, 0, {   820,      0}, {0x00, 0x7f, 0x00, 0xff}}},
     22     {{{  -127,    307,    128}, 0, {     0,    820}, {0x00, 0x7f, 0x00, 0xff}}},
     23 };
     24 
     25 // 0x07017A38 - 0x07017A78
     26 static const Vtx lll_seg7_vertex_07017A38[] = {
     27     {{{   128,      0,    128}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     28     {{{   128,    307,    128}, 0, {   990,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     29     {{{  -127,    307,    128}, 0, {     0,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     30     {{{  -127,      0,    128}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     31 };
     32 
     33 // 0x07017A78 - 0x07017AE0
     34 static const Gfx lll_seg7_dl_07017A78[] = {
     35     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006800),
     36     gsDPLoadSync(),
     37     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     38     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
     39     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
     40     gsSPVertex(lll_seg7_vertex_07017938, 12, 0),
     41     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     42     gsSP2Triangles( 4,  5,  6, 0x0,  4,  6,  7, 0x0),
     43     gsSP2Triangles( 8,  9, 10, 0x0,  8, 11,  9, 0x0),
     44     gsSPEndDisplayList(),
     45 };
     46 
     47 // 0x07017AE0 - 0x07017B18
     48 static const Gfx lll_seg7_dl_07017AE0[] = {
     49     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09006000),
     50     gsDPLoadSync(),
     51     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     52     gsSPVertex(lll_seg7_vertex_070179F8, 4, 0),
     53     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     54     gsSPEndDisplayList(),
     55 };
     56 
     57 // 0x07017B18 - 0x07017B50
     58 static const Gfx lll_seg7_dl_07017B18[] = {
     59     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, fire_09008800),
     60     gsDPLoadSync(),
     61     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     62     gsSPVertex(lll_seg7_vertex_07017A38, 4, 0),
     63     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     64     gsSPEndDisplayList(),
     65 };
     66 
     67 // 0x07017B50 - 0x07017BE8
     68 const Gfx lll_seg7_dl_07017B50[] = {
     69     gsDPPipeSync(),
     70     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     71     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     72     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),
     73     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     74     gsDPTileSync(),
     75     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),
     76     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     77     gsSPDisplayList(lll_seg7_dl_07017A78),
     78     gsDPTileSync(),
     79     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),
     80     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     81     gsSPDisplayList(lll_seg7_dl_07017AE0),
     82     gsSPDisplayList(lll_seg7_dl_07017B18),
     83     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     84     gsDPPipeSync(),
     85     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     86     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     87     gsSPEndDisplayList(),
     88 };