sm64

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

model.inc.c (6462B)


      1 // 0x0700F830 - 0x0700F848
      2 static const Lights1 ttc_seg7_lights_0700F830 = gdSPDefLights1(
      3     0x7f, 0x7f, 0x7f,
      4     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700F848 - 0x0700F860
      8 static const Lights1 ttc_seg7_lights_0700F848 = gdSPDefLights1(
      9     0x46, 0x46, 0x46,
     10     0x8c, 0x8c, 0x8c, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x0700F860 - 0x0700F8E0
     14 static const Vtx ttc_seg7_vertex_0700F860[] = {
     15     {{{  -229,   -137,   -511}, 0, {  4810,    990}, {0x81, 0x00, 0x00, 0xff}}},
     16     {{{  -229,      0,    512}, 0, { -2758,    -34}, {0x81, 0x00, 0x00, 0xff}}},
     17     {{{  -229,      0,   -511}, 0, {  4810,    -34}, {0x81, 0x00, 0x00, 0xff}}},
     18     {{{  -229,   -137,    512}, 0, { -2758,    990}, {0x81, 0x00, 0x00, 0xff}}},
     19     {{{   230,      0,   -511}, 0, {  4810,    -34}, {0x7f, 0x00, 0x00, 0xff}}},
     20     {{{   230,   -137,    512}, 0, { -2758,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     21     {{{   230,   -137,   -511}, 0, {  4810,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     22     {{{   230,      0,    512}, 0, { -2758,    -34}, {0x7f, 0x00, 0x00, 0xff}}},
     23 };
     24 
     25 // 0x0700F8E0 - 0x0700F9C0
     26 static const Vtx ttc_seg7_vertex_0700F8E0[] = {
     27     {{{   230,   -137,   -511}, 0, {   990,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     28     {{{   230,    -35,   -547}, 0, {   334,    234}, {0x7f, 0x00, 0x00, 0xff}}},
     29     {{{   230,      0,   -511}, 0, {   990,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     30     {{{  -229,   -137,   -547}, 0, {   334,    990}, {0xac, 0xd6, 0xac, 0xff}}},
     31     {{{  -229,    -86,   -547}, 0, {   334,    612}, {0x00, 0x00, 0x81, 0xff}}},
     32     {{{   230,    -86,   -547}, 0, {   334,    612}, {0x00, 0x00, 0x81, 0xff}}},
     33     {{{   230,   -137,   -547}, 0, {   334,    990}, {0x33, 0x99, 0xcd, 0xff}}},
     34     {{{  -229,      0,   -511}, 0, {   990,      0}, {0x81, 0x00, 0x00, 0xff}}},
     35     {{{  -229,    -35,   -547}, 0, {   334,    234}, {0x81, 0x00, 0x00, 0xff}}},
     36     {{{  -229,   -137,   -511}, 0, {   990,    990}, {0x81, 0x00, 0x00, 0xff}}},
     37     {{{  -229,   -137,    512}, 0, {   990,    990}, {0x81, 0x00, 0x00, 0xff}}},
     38     {{{  -229,   -137,    549}, 0, {   334,    990}, {0xcd, 0x99, 0x33, 0xff}}},
     39     {{{  -229,    -35,    549}, 0, {   334,    234}, {0x81, 0x00, 0x00, 0xff}}},
     40     {{{  -229,      0,    512}, 0, {   990,      0}, {0x81, 0x00, 0x00, 0xff}}},
     41 };
     42 
     43 // 0x0700F9C0 - 0x0700FA60
     44 static const Vtx ttc_seg7_vertex_0700F9C0[] = {
     45     {{{   230,   -137,    549}, 0, {   334,    990}, {0x54, 0xd6, 0x54, 0xff}}},
     46     {{{   230,    -86,    549}, 0, {   334,    612}, {0x00, 0x00, 0x7f, 0xff}}},
     47     {{{  -229,    -86,    549}, 0, {   334,    612}, {0x00, 0x00, 0x7f, 0xff}}},
     48     {{{   230,   -137,   -511}, 0, {   990,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     49     {{{   230,   -137,   -547}, 0, {   334,    990}, {0x33, 0x99, 0xcd, 0xff}}},
     50     {{{   230,    -35,   -547}, 0, {   334,    234}, {0x7f, 0x00, 0x00, 0xff}}},
     51     {{{   230,      0,    512}, 0, {   990,      0}, {0x7f, 0x00, 0x00, 0xff}}},
     52     {{{   230,    -35,    549}, 0, {   334,    234}, {0x7f, 0x00, 0x00, 0xff}}},
     53     {{{   230,   -137,    512}, 0, {   990,    990}, {0x7f, 0x00, 0x00, 0xff}}},
     54     {{{  -229,   -137,    549}, 0, {   334,    990}, {0xcd, 0x99, 0x33, 0xff}}},
     55 };
     56 
     57 // 0x0700FA60 - 0x0700FAA0
     58 static const Vtx ttc_seg7_vertex_0700FA60[] = {
     59     {{{   230,   -137,   -547}, 0, {     0,      0}, {0x33, 0x99, 0xcd, 0xff}}},
     60     {{{   230,   -137,    549}, 0, {     0,      0}, {0x54, 0xd6, 0x54, 0xff}}},
     61     {{{  -229,   -137,    549}, 0, {     0,      0}, {0xcd, 0x99, 0x33, 0xff}}},
     62     {{{  -229,   -137,   -547}, 0, {     0,      0}, {0xac, 0xd6, 0xac, 0xff}}},
     63 };
     64 
     65 // 0x0700FAA0 - 0x0700FAF8
     66 static const Gfx ttc_seg7_dl_0700FAA0[] = {
     67     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09005800),
     68     gsDPLoadSync(),
     69     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     70     gsSPLight(&ttc_seg7_lights_0700F830.l, 1),
     71     gsSPLight(&ttc_seg7_lights_0700F830.a, 2),
     72     gsSPVertex(ttc_seg7_vertex_0700F860, 8, 0),
     73     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
     74     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
     75     gsSPEndDisplayList(),
     76 };
     77 
     78 // 0x0700FAF8 - 0x0700FB88
     79 static const Gfx ttc_seg7_dl_0700FAF8[] = {
     80     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, machine_09006000),
     81     gsDPLoadSync(),
     82     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     83     gsSPVertex(ttc_seg7_vertex_0700F8E0, 14, 0),
     84     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     85     gsSP2Triangles( 3,  5,  6, 0x0,  7,  8,  3, 0x0),
     86     gsSP2Triangles( 7,  3,  9, 0x0, 10, 11, 12, 0x0),
     87     gsSP1Triangle(10, 12, 13, 0x0),
     88     gsSPVertex(ttc_seg7_vertex_0700F9C0, 10, 0),
     89     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     90     gsSP2Triangles( 6,  7,  0, 0x0,  6,  0,  8, 0x0),
     91     gsSP1Triangle( 0,  2,  9, 0x0),
     92     gsSPEndDisplayList(),
     93 };
     94 
     95 // 0x0700FB88 - 0x0700FBB8
     96 static const Gfx ttc_seg7_dl_0700FB88[] = {
     97     gsSPLight(&ttc_seg7_lights_0700F848.l, 1),
     98     gsSPLight(&ttc_seg7_lights_0700F848.a, 2),
     99     gsSPVertex(ttc_seg7_vertex_0700FA60, 4, 0),
    100     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    101     gsSPEndDisplayList(),
    102 };
    103 
    104 // 0x0700FBB8 - 0x0700FC80
    105 const Gfx ttc_seg7_dl_0700FBB8[] = {
    106     gsDPPipeSync(),
    107     gsDPSetCycleType(G_CYC_2CYCLE),
    108     gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
    109     gsDPSetDepthSource(G_ZS_PIXEL),
    110     gsDPSetFogColor(200, 255, 255, 255),
    111     gsSPFogPosition(900, 1000),
    112     gsSPSetGeometryMode(G_FOG),
    113     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
    114     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),
    115     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    116     gsDPTileSync(),
    117     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),
    118     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    119     gsSPDisplayList(ttc_seg7_dl_0700FAA0),
    120     gsSPDisplayList(ttc_seg7_dl_0700FAF8),
    121     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    122     gsDPPipeSync(),
    123     gsDPSetCombineMode(G_CC_SHADE, G_CC_PASS2),
    124     gsSPDisplayList(ttc_seg7_dl_0700FB88),
    125     gsDPPipeSync(),
    126     gsDPSetCycleType(G_CYC_1CYCLE),
    127     gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
    128     gsSPClearGeometryMode(G_FOG),
    129     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    130     gsSPEndDisplayList(),
    131 };