sm64

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

model.inc.c (2594B)


      1 // Not a traditional model file. The vertexes are generated in src/geo_misc.c.
      2 
      3 // 0x07019230 - 0x07019248
      4 static const Lights1 rr_seg7_lights_07019230 = gdSPDefLights1(
      5     0x5f, 0x5f, 0x5f,
      6     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
      7 );
      8 
      9 // 0x07019248 - 0x070192F0
     10 const s16 flying_carpet_static_vertex_data[] = {
     11 //     x     z    tx    ty
     12     -306,  205,    0,    0,
     13     -306,    0,  992,    0,
     14     -306, -204,    0,    0,
     15     -204,  205,    0,  308,
     16     -204,    0,  992,  308,
     17     -204, -204,    0,  308,
     18     -102,  205,    0,  650,
     19     -102,    0,  992,  650,
     20     -102, -204,    0,  650,
     21        0,  205,    0,  992,
     22        0,    0,  992,  992,
     23        0, -204,    0,  992,
     24      102,  205,    0,  650,
     25      102,    0,  992,  650,
     26      102, -204,    0,  650,
     27      205,  205,    0,  308,
     28      205,    0,  992,  308,
     29      205, -204,    0,  308,
     30      307,  205,    0,    0,
     31      307,    0,  990,    0,
     32      307, -204,    0,    0,
     33 };
     34 
     35 // 0x070192F0 - 0x07019360
     36 const Gfx dl_flying_carpet_begin[] = {
     37     gsDPPipeSync(),
     38     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     39     gsSPClearGeometryMode(G_CULL_BACK),
     40     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),
     41     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     42     gsDPTileSync(),
     43     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     44     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     45     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, texture_quarter_flying_carpet),
     46     gsDPLoadSync(),
     47     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     48     gsSPLight(&rr_seg7_lights_07019230.l, 1),
     49     gsSPLight(&rr_seg7_lights_07019230.a, 2),
     50     gsSPEndDisplayList(),
     51 };
     52 
     53 // 0x07019360 - 0x070193C8
     54 const Gfx dl_flying_carpet_model_half[] = {
     55     gsSP2Triangles( 0,  1,  3, 0x0,  3,  1,  4, 0x0),
     56     gsSP2Triangles( 1,  2,  4, 0x0,  4,  2,  5, 0x0),
     57     gsSP2Triangles( 3,  4,  6, 0x0,  6,  4,  7, 0x0),
     58     gsSP2Triangles( 4,  5,  7, 0x0,  7,  5,  8, 0x0),
     59     gsSP2Triangles( 6,  7,  9, 0x0,  9,  7, 10, 0x0),
     60     gsSP2Triangles( 7,  8, 10, 0x0, 10,  8, 11, 0x0),
     61     gsSPEndDisplayList(),
     62 };
     63 
     64 // 0x070193C8 - 0x070193F0
     65 const Gfx dl_flying_carpet_end[] = {
     66     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     67     gsDPPipeSync(),
     68     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     69     gsSPSetGeometryMode(G_CULL_BACK),
     70     gsSPEndDisplayList(),
     71 };