sm64

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

model.inc.c (5229B)


      1 // 0x0700F800 - 0x0700F818
      2 static const Lights1 ccm_seg7_lights_0700F800 = gdSPDefLights1(
      3     0x7f, 0x7f, 0x7f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700F818 - 0x0700F878
      8 static const Vtx ccm_seg7_vertex_0700F818[] = {
      9     {{{  -177,    102,   -153}, 0, {  2906,  -3104}, {0x00, 0x7f, 0x00, 0xff}}},
     10     {{{     0,    102,    154}, 0, {  1832,  -4510}, {0x00, 0x7f, 0x00, 0xff}}},
     11     {{{   177,    102,     51}, 0, {  1020,  -3890}, {0x00, 0x7f, 0x00, 0xff}}},
     12     {{{  -177,    102,     51}, 0, {  2776,  -4116}, {0x00, 0x7f, 0x00, 0xff}}},
     13     {{{   177,    102,   -153}, 0, {  1152,  -2876}, {0x00, 0x7f, 0x00, 0xff}}},
     14     {{{     0,    102,   -255}, 0, {  2094,  -2482}, {0x00, 0x7f, 0x00, 0xff}}},
     15 };
     16 
     17 // 0x0700F878 - 0x0700F968
     18 static const Vtx ccm_seg7_vertex_0700F878[] = {
     19     {{{   177,      0,     51}, 0, {     0,    990}, {0x3f, 0x00, 0x6d, 0xff}}},
     20     {{{     0,    102,    154}, 0, {  2012,      0}, {0x3f, 0x00, 0x6d, 0xff}}},
     21     {{{     0,      0,    154}, 0, {  2012,    990}, {0x3f, 0x00, 0x6d, 0xff}}},
     22     {{{  -177,      0,   -153}, 0, {  2012,    990}, {0xc1, 0x00, 0x92, 0xff}}},
     23     {{{  -177,    102,   -153}, 0, {  2012,      0}, {0xc1, 0x00, 0x92, 0xff}}},
     24     {{{     0,    102,   -255}, 0, {     0,      0}, {0xc1, 0x00, 0x92, 0xff}}},
     25     {{{     0,      0,   -255}, 0, {     0,    990}, {0xc1, 0x00, 0x92, 0xff}}},
     26     {{{  -177,      0,     51}, 0, {  2012,    990}, {0x81, 0x00, 0x00, 0xff}}},
     27     {{{  -177,    102,     51}, 0, {  2012,      0}, {0x81, 0x00, 0x00, 0xff}}},
     28     {{{  -177,    102,   -153}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0xff}}},
     29     {{{  -177,      0,   -153}, 0, {     0,    990}, {0x81, 0x00, 0x00, 0xff}}},
     30     {{{     0,      0,    154}, 0, {  2012,    990}, {0xc1, 0x00, 0x6d, 0xff}}},
     31     {{{  -177,    102,     51}, 0, {     0,      0}, {0xc1, 0x00, 0x6d, 0xff}}},
     32     {{{  -177,      0,     51}, 0, {     0,    990}, {0xc1, 0x00, 0x6d, 0xff}}},
     33     {{{     0,    102,    154}, 0, {  2012,      0}, {0xc1, 0x00, 0x6d, 0xff}}},
     34 };
     35 
     36 // 0x0700F968 - 0x0700FA18
     37 static const Vtx ccm_seg7_vertex_0700F968[] = {
     38     {{{     0,      0,   -255}, 0, {     0,    990}, {0x3f, 0x00, 0x92, 0xff}}},
     39     {{{     0,    102,   -255}, 0, {     0,      0}, {0x3f, 0x00, 0x92, 0xff}}},
     40     {{{   177,    102,   -153}, 0, {  2012,      0}, {0x3f, 0x00, 0x92, 0xff}}},
     41     {{{   177,      0,     51}, 0, {     0,    990}, {0x3f, 0x00, 0x6d, 0xff}}},
     42     {{{   177,    102,     51}, 0, {     0,      0}, {0x3f, 0x00, 0x6d, 0xff}}},
     43     {{{     0,    102,    154}, 0, {  2012,      0}, {0x3f, 0x00, 0x6d, 0xff}}},
     44     {{{   177,      0,   -153}, 0, {     0,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     45     {{{   177,    102,     51}, 0, {  2012,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     46     {{{   177,      0,     51}, 0, {  2012,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     47     {{{   177,    102,   -153}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     48     {{{   177,      0,   -153}, 0, {  2012,    990}, {0x3f, 0x00, 0x92, 0xff}}},
     49 };
     50 
     51 // 0x0700FA18 - 0x0700FA70
     52 static const Gfx ccm_seg7_dl_0700FA18[] = {
     53     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000),
     54     gsDPLoadSync(),
     55     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     56     gsSPLight(&ccm_seg7_lights_0700F800.l, 1),
     57     gsSPLight(&ccm_seg7_lights_0700F800.a, 2),
     58     gsSPVertex(ccm_seg7_vertex_0700F818, 6, 0),
     59     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     60     gsSP2Triangles( 0,  2,  4, 0x0,  0,  4,  5, 0x0),
     61     gsSPEndDisplayList(),
     62 };
     63 
     64 // 0x0700FA70 - 0x0700FB00
     65 static const Gfx ccm_seg7_dl_0700FA70[] = {
     66     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07001900),
     67     gsDPLoadSync(),
     68     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     69     gsSPVertex(ccm_seg7_vertex_0700F878, 15, 0),
     70     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     71     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  9, 0x0),
     72     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
     73     gsSP1Triangle(11, 14, 12, 0x0),
     74     gsSPVertex(ccm_seg7_vertex_0700F968, 11, 0),
     75     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     76     gsSP2Triangles( 6,  7,  8, 0x0,  6,  9,  7, 0x0),
     77     gsSP1Triangle( 0,  2, 10, 0x0),
     78     gsSPEndDisplayList(),
     79 };
     80 
     81 // 0x0700FB00 - 0x0700FB78
     82 const Gfx ccm_seg7_dl_0700FB00[] = {
     83     gsDPPipeSync(),
     84     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     85     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     86     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),
     87     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     88     gsDPTileSync(),
     89     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),
     90     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     91     gsSPDisplayList(ccm_seg7_dl_0700FA18),
     92     gsSPDisplayList(ccm_seg7_dl_0700FA70),
     93     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     94     gsDPPipeSync(),
     95     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     96     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     97     gsSPEndDisplayList(),
     98 };