sm64

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

model.inc.c (5972B)


      1 // 0x0700CEE0 - 0x0700CEF8
      2 static const Lights1 ddd_seg7_lights_0700CEE0 = gdSPDefLights1(
      3     0x66, 0x66, 0x66,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700CEF8 - 0x0700CFE8
      8 static const Vtx ddd_seg7_vertex_0700CEF8[] = {
      9     {{{    13,    512,    -12}, 0, {   352,     16}, {0x00, 0x00, 0x81, 0xff}}},
     10     {{{    13,      0,    -12}, 0, {   352,    990}, {0x00, 0x00, 0x81, 0xff}}},
     11     {{{   -12,      0,    -12}, 0, {   606,    990}, {0x00, 0x00, 0x81, 0xff}}},
     12     {{{    77,    512,     77}, 0, {  1118,     16}, {0x00, 0x81, 0x00, 0xff}}},
     13     {{{   -76,    512,    -76}, 0, {   606,     16}, {0x00, 0x81, 0x00, 0xff}}},
     14     {{{    77,    512,    -76}, 0, {   352,     16}, {0x00, 0x81, 0x00, 0xff}}},
     15     {{{   -76,    512,     77}, 0, {   862,     16}, {0x00, 0x81, 0x00, 0xff}}},
     16     {{{   -76,    538,     77}, 0, {   862,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     17     {{{    77,    512,     77}, 0, {  1118,     16}, {0x00, 0x00, 0x7f, 0xff}}},
     18     {{{    77,    538,     77}, 0, {  1118,      0}, {0x00, 0x00, 0x7f, 0xff}}},
     19     {{{   -76,    512,     77}, 0, {   862,     16}, {0x00, 0x00, 0x7f, 0xff}}},
     20     {{{   -76,    538,    -76}, 0, {   606,      0}, {0x81, 0x00, 0x00, 0xff}}},
     21     {{{   -76,    512,    -76}, 0, {   606,     16}, {0x81, 0x00, 0x00, 0xff}}},
     22     {{{   -76,    512,     77}, 0, {   862,     16}, {0x81, 0x00, 0x00, 0xff}}},
     23     {{{   -76,    538,     77}, 0, {   862,      0}, {0x81, 0x00, 0x00, 0xff}}},
     24 };
     25 
     26 // 0x0700CFE8 - 0x0700D0C8
     27 static const Vtx ddd_seg7_vertex_0700CFE8[] = {
     28     {{{    77,    538,    -76}, 0, {   352,      0}, {0x00, 0x00, 0x81, 0xff}}},
     29     {{{   -76,    512,    -76}, 0, {   606,     16}, {0x00, 0x00, 0x81, 0xff}}},
     30     {{{   -76,    538,    -76}, 0, {   606,      0}, {0x00, 0x00, 0x81, 0xff}}},
     31     {{{    77,    512,    -76}, 0, {   352,     16}, {0x00, 0x00, 0x81, 0xff}}},
     32     {{{    77,    538,     77}, 0, {    96,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     33     {{{    77,    512,    -76}, 0, {   352,     16}, {0x7f, 0x00, 0x00, 0xff}}},
     34     {{{    77,    538,    -76}, 0, {   352,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     35     {{{    77,    512,     77}, 0, {    96,     16}, {0x7f, 0x00, 0x00, 0xff}}},
     36     {{{    13,    512,    -12}, 0, {   352,     16}, {0x00, 0x00, 0x81, 0xff}}},
     37     {{{   -12,      0,    -12}, 0, {   606,    990}, {0x00, 0x00, 0x81, 0xff}}},
     38     {{{   -12,    512,    -12}, 0, {   606,     16}, {0x00, 0x00, 0x81, 0xff}}},
     39     {{{    13,    512,     13}, 0, {    96,     16}, {0x7f, 0x00, 0x00, 0xff}}},
     40     {{{    13,      0,    -12}, 0, {   352,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     41     {{{    13,    512,    -12}, 0, {   352,     16}, {0x7f, 0x00, 0x00, 0xff}}},
     42 };
     43 
     44 // 0x0700D0C8 - 0x0700D1B8
     45 static const Vtx ddd_seg7_vertex_0700D0C8[] = {
     46     {{{   -12,    512,     13}, 0, {   862,     16}, {0x00, 0x00, 0x7f, 0xff}}},
     47     {{{    13,      0,     13}, 0, {  1118,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     48     {{{    13,    512,     13}, 0, {  1118,     16}, {0x00, 0x00, 0x7f, 0xff}}},
     49     {{{    13,      0,     13}, 0, {  1118,    990}, {0x00, 0x81, 0x00, 0xff}}},
     50     {{{   -12,      0,    -12}, 0, {   606,    990}, {0x00, 0x81, 0x00, 0xff}}},
     51     {{{    13,      0,    -12}, 0, {   352,    990}, {0x00, 0x81, 0x00, 0xff}}},
     52     {{{    13,    512,     13}, 0, {    96,     16}, {0x7f, 0x00, 0x00, 0xff}}},
     53     {{{    13,      0,     13}, 0, {    96,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     54     {{{    13,      0,    -12}, 0, {   352,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     55     {{{   -12,    512,    -12}, 0, {   606,     16}, {0x81, 0x00, 0x00, 0xff}}},
     56     {{{   -12,      0,    -12}, 0, {   606,    990}, {0x81, 0x00, 0x00, 0xff}}},
     57     {{{   -12,      0,     13}, 0, {   862,    990}, {0x81, 0x00, 0x00, 0xff}}},
     58     {{{   -12,      0,     13}, 0, {   862,    990}, {0x00, 0x81, 0x00, 0xff}}},
     59     {{{   -12,    512,     13}, 0, {   862,     16}, {0x81, 0x00, 0x00, 0xff}}},
     60     {{{   -12,      0,     13}, 0, {   862,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     61 };
     62 
     63 // 0x0700D1B8 - 0x0700D2A0
     64 static const Gfx ddd_seg7_dl_0700D1B8[] = {
     65     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ddd_seg7_texture_07003000),
     66     gsDPLoadSync(),
     67     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     68     gsSPLight(&ddd_seg7_lights_0700CEE0.l, 1),
     69     gsSPLight(&ddd_seg7_lights_0700CEE0.a, 2),
     70     gsSPVertex(ddd_seg7_vertex_0700CEF8, 15, 0),
     71     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     72     gsSP2Triangles( 3,  6,  4, 0x0,  7,  8,  9, 0x0),
     73     gsSP2Triangles( 7, 10,  8, 0x0, 11, 12, 13, 0x0),
     74     gsSP1Triangle(11, 13, 14, 0x0),
     75     gsSPVertex(ddd_seg7_vertex_0700CFE8, 14, 0),
     76     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     77     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
     78     gsSP2Triangles( 8,  9, 10, 0x0, 11, 12, 13, 0x0),
     79     gsSPVertex(ddd_seg7_vertex_0700D0C8, 15, 0),
     80     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     81     gsSP2Triangles( 6,  7,  8, 0x0,  9, 10, 11, 0x0),
     82     gsSP2Triangles( 3, 12,  4, 0x0,  9, 11, 13, 0x0),
     83     gsSP1Triangle( 0, 14,  1, 0x0),
     84     gsSPEndDisplayList(),
     85 };
     86 
     87 // 0x0700D2A0 - 0x0700D310
     88 const Gfx ddd_seg7_dl_0700D2A0[] = {
     89     gsDPPipeSync(),
     90     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     91     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     92     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),
     93     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     94     gsDPTileSync(),
     95     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),
     96     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     97     gsSPDisplayList(ddd_seg7_dl_0700D1B8),
     98     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     99     gsDPPipeSync(),
    100     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    101     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    102     gsSPEndDisplayList(),
    103 };