sm64

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

model.inc.c (3071B)


      1 // 0x07014CB8 - 0x07014CD0
      2 static const Lights1 hmc_seg7_lights_07014CB8 = gdSPDefLights1(
      3     0x23, 0x2b, 0x14,
      4     0x8e, 0xac, 0x52, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07014CD0 - 0x07014DD0
      8 static const Vtx hmc_seg7_vertex_07014CD0[] = {
      9     {{{  3165,   -409,  -6338}, 0, {   990,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     10     {{{  3113,   -869,  -6338}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     11     {{{  3165,   -869,  -6338}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     12     {{{  3482,   -665,  -6338}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     13     {{{  3533,   -665,  -6338}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     14     {{{  3533,   -409,  -6338}, 0, {   990,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     15     {{{  3482,   -409,  -6338}, 0, {     0,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     16     {{{  3328,   -921,  -6338}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     17     {{{  3431,   -921,  -6338}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     18     {{{  3431,   -409,  -6338}, 0, {   990,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     19     {{{  3328,   -409,  -6338}, 0, {     0,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     20     {{{  3277,   -409,  -6338}, 0, {   990,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     21     {{{  3226,   -818,  -6338}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     22     {{{  3277,   -818,  -6338}, 0, {   990,    990}, {0x00, 0x00, 0x7f, 0x80}}},
     23     {{{  3226,   -409,  -6338}, 0, {     0,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     24     {{{  3113,   -409,  -6338}, 0, {     0,    422}, {0x00, 0x00, 0x7f, 0x80}}},
     25 };
     26 
     27 // 0x07014DD0 - 0x07014E48
     28 static const Gfx hmc_seg7_dl_07014DD0[] = {
     29     gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, cave_0900C000),
     30     gsDPLoadSync(),
     31     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     32     gsSPLight(&hmc_seg7_lights_07014CB8.l, 1),
     33     gsSPLight(&hmc_seg7_lights_07014CB8.a, 2),
     34     gsSPVertex(hmc_seg7_vertex_07014CD0, 16, 0),
     35     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     36     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
     37     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
     38     gsSP2Triangles(11, 14, 12, 0x0,  0, 15,  1, 0x0),
     39     gsSPEndDisplayList(),
     40 };
     41 
     42 // 0x07014E48 - 0x07014EB8
     43 const Gfx hmc_seg7_dl_07014E48[] = {
     44     gsDPPipeSync(),
     45     gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
     46     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     47     gsDPSetTile(G_IM_FMT_IA, 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),
     48     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     49     gsDPTileSync(),
     50     gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     51     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     52     gsSPDisplayList(hmc_seg7_dl_07014DD0),
     53     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     54     gsDPPipeSync(),
     55     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     56     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     57     gsSPEndDisplayList(),
     58 };