sm64

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

model.inc.c (3652B)


      1 // 0x0700BE90 - 0x0700BEA8
      2 static const Lights1 ttm_seg7_lights_0700BE90 = gdSPDefLights1(
      3     0x4c, 0x4c, 0x4c,
      4     0x99, 0x99, 0x99, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700BEA8 - 0x0700BEC0
      8 static const Lights1 ttm_seg7_lights_0700BEA8 = gdSPDefLights1(
      9     0x5d, 0x5d, 0x5d,
     10     0xbb, 0xbb, 0xbb, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x0700BEC0 - 0x0700BF40
     14 static const Vtx ttm_seg7_vertex_0700BEC0[] = {
     15     {{{   614,  -1486,   -697}, 0, {     0,    990}, {0x00, 0x00, 0x81, 0xff}}},
     16     {{{  -613,  -1486,   -697}, 0, {  2420,    990}, {0x00, 0x00, 0x81, 0xff}}},
     17     {{{  -613,   1487,   -697}, 0, {  2420,  -4946}, {0x00, 0x00, 0x81, 0xff}}},
     18     {{{   205,   1487,   -697}, 0, {   786,  -4946}, {0x00, 0x00, 0x81, 0xff}}},
     19     {{{  -613,   1282,    717}, 0, {     0,  -1470}, {0x00, 0x00, 0x7f, 0xff}}},
     20     {{{  -613,     49,    717}, 0, {     0,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     21     {{{   614,     49,    717}, 0, {  2420,    990}, {0x00, 0x00, 0x7f, 0xff}}},
     22     {{{   205,   1282,    717}, 0, {  1604,  -1470}, {0x00, 0x00, 0x7f, 0xff}}},
     23 };
     24 
     25 // 0x0700BF40 - 0x0700BFE0
     26 static const Vtx ttm_seg7_vertex_0700BF40[] = {
     27     {{{   205,   1282,    717}, 0, {  1604,    990}, {0x00, 0x7d, 0x12, 0xff}}},
     28     {{{   205,   1487,   -697}, 0, {  1604,  -1864}, {0x00, 0x7d, 0x12, 0xff}}},
     29     {{{  -613,   1282,    717}, 0, {     0,    990}, {0x00, 0x7d, 0x12, 0xff}}},
     30     {{{  -613,   1487,   -697}, 0, {     0,  -1864}, {0x00, 0x7d, 0x12, 0xff}}},
     31     {{{   205,   1282,    717}, 0, {  4874,  -4536}, {0x78, 0x27, 0x05, 0xff}}},
     32     {{{   614,     49,    717}, 0, {  4874,  -2076}, {0x78, 0x27, 0x05, 0xff}}},
     33     {{{   205,   1487,   -697}, 0, {  7698,  -4946}, {0x78, 0x27, 0x05, 0xff}}},
     34     {{{   614,  -1486,   -697}, 0, {  7698,    990}, {0x7c, 0x11, 0xee, 0xff}}},
     35     {{{   205,   1487,   -697}, 0, {  7698,  -4946}, {0x7c, 0x11, 0xee, 0xff}}},
     36     {{{   614,     49,    717}, 0, {  4874,  -2076}, {0x7c, 0x11, 0xee, 0xff}}},
     37 };
     38 
     39 // 0x0700BFE0 - 0x0700C070
     40 static const Gfx ttm_seg7_dl_0700BFE0[] = {
     41     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mountain_09004000),
     42     gsDPLoadSync(),
     43     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     44     gsSPLight(&ttm_seg7_lights_0700BE90.l, 1),
     45     gsSPLight(&ttm_seg7_lights_0700BE90.a, 2),
     46     gsSPVertex(ttm_seg7_vertex_0700BEC0, 8, 0),
     47     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     48     gsSP2Triangles( 4,  5,  6, 0x0,  6,  7,  4, 0x0),
     49     gsSPLight(&ttm_seg7_lights_0700BEA8.l, 1),
     50     gsSPLight(&ttm_seg7_lights_0700BEA8.a, 2),
     51     gsSPVertex(ttm_seg7_vertex_0700BF40, 10, 0),
     52     gsSP2Triangles( 0,  1,  2, 0x0,  1,  3,  2, 0x0),
     53     gsSP2Triangles( 4,  5,  6, 0x0,  7,  8,  9, 0x0),
     54     gsSPEndDisplayList(),
     55 };
     56 
     57 // 0x0700C070 - 0x0700C0E0
     58 const Gfx ttm_seg7_dl_0700C070[] = {
     59     gsDPPipeSync(),
     60     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     61     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     62     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),
     63     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     64     gsDPTileSync(),
     65     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),
     66     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     67     gsSPDisplayList(ttm_seg7_dl_0700BFE0),
     68     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     69     gsDPPipeSync(),
     70     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     71     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     72     gsSPEndDisplayList(),
     73 };