sm64

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

model.inc.c (5549B)


      1 // Spindrift
      2 
      3 // Unreferenced light group
      4 UNUSED static const Lights1 spindrift_lights_unused1 = gdSPDefLights1(
      5     0x3f, 0x08, 0x1b,
      6     0xff, 0x22, 0x6d, 0x28, 0x28, 0x28
      7 );
      8 
      9 // Unreferenced light group
     10 UNUSED static const Lights1 spindrift_lights_unused2 = gdSPDefLights1(
     11     0x3f, 0x3f, 0x3f,
     12     0xfd, 0xff, 0xff, 0x28, 0x28, 0x28
     13 );
     14 
     15 // 0x05000030
     16 static const Lights1 spindrift_seg5_lights_05000030 = gdSPDefLights1(
     17     0x12, 0x2c, 0x00,
     18     0x49, 0xb2, 0x00, 0x28, 0x28, 0x28
     19 );
     20 
     21 // 0x05000048
     22 static const Lights1 spindrift_seg5_lights_05000048 = gdSPDefLights1(
     23     0x37, 0x3f, 0x00,
     24     0xdd, 0xff, 0x01, 0x28, 0x28, 0x28
     25 );
     26 
     27 // Unreferenced light group
     28 UNUSED static const Lights1 spindrift_lights_unused3 = gdSPDefLights1(
     29     0x00, 0x15, 0x00,
     30     0x00, 0x56, 0x00, 0x28, 0x28, 0x28
     31 );
     32 
     33 // 0x05000078
     34 static const Lights1 spindrift_seg5_lights_05000078 = gdSPDefLights1(
     35     0x3f, 0x38, 0x00,
     36     0xff, 0xe2, 0x00, 0x28, 0x28, 0x28
     37 );
     38 
     39 // 0x05000090
     40 static const Lights1 spindrift_seg5_lights_05000090 = gdSPDefLights1(
     41     0x00, 0x0f, 0x00,
     42     0x00, 0x3f, 0x00, 0x28, 0x28, 0x28
     43 );
     44 
     45 // Unreferenced light group
     46 UNUSED static const Lights1 spindrift_lights_unused4 = gdSPDefLights1(
     47     0x3f, 0x00, 0x00,
     48     0xff, 0x00, 0x00, 0x28, 0x28, 0x28
     49 );
     50 
     51 // 0x050000C0
     52 static const Vtx spindrift_seg5_vertex_050000C0[] = {
     53     {{{    34,     40,     30}, 0, {     0,      0}, {0x7b, 0x17, 0x11, 0x00}}},
     54     {{{    34,    -16,     46}, 0, {     0,      0}, {0x7b, 0xf7, 0x1c, 0x00}}},
     55     {{{    46,      0,      0}, 0, {     0,      0}, {0x7f, 0x00, 0x00, 0x00}}},
     56     {{{    34,    -50,      0}, 0, {     0,      0}, {0x7b, 0xe3, 0x00, 0xff}}},
     57     {{{    34,    -16,    -46}, 0, {     0,      0}, {0x7b, 0xf7, 0xe3, 0xff}}},
     58     {{{    34,     40,    -28}, 0, {     0,      0}, {0x7b, 0x18, 0xee, 0xff}}},
     59 };
     60 
     61 // 0x05000120
     62 static const Vtx spindrift_seg5_vertex_05000120[] = {
     63     {{{     6,      0,      0}, 0, {     0,      0}, {0x81, 0x00, 0x00, 0x00}}},
     64     {{{    34,    -16,    -46}, 0, {     0,      0}, {0x92, 0xee, 0xc4, 0x00}}},
     65     {{{    34,    -50,      0}, 0, {     0,      0}, {0x92, 0xc2, 0x00, 0x00}}},
     66     {{{    34,    -16,     46}, 0, {     0,      0}, {0x92, 0xec, 0x3b, 0xff}}},
     67     {{{    34,     40,    -28}, 0, {     0,      0}, {0x92, 0x32, 0xdb, 0xff}}},
     68     {{{    34,     40,     30}, 0, {     0,      0}, {0x92, 0x31, 0x25, 0xff}}},
     69 };
     70 
     71 // 0x05000180
     72 static const Vtx spindrift_seg5_vertex_05000180[] = {
     73     {{{    70,     50,      0}, 0, {     0,      0}, {0xcb, 0x73, 0x00, 0x00}}},
     74     {{{    24,    -12,     56}, 0, {     0,      0}, {0xa9, 0x22, 0x54, 0x00}}},
     75     {{{   128,     -2,     94}, 0, {     0,      0}, {0xda, 0x45, 0x63, 0x00}}},
     76     {{{     0,     -5,      0}, 0, {     0,      0}, {0x8e, 0x37, 0x00, 0xff}}},
     77     {{{    24,    -12,    -56}, 0, {     0,      0}, {0xa8, 0x22, 0xac, 0xff}}},
     78     {{{     0,    -57,      0}, 0, {     0,      0}, {0x87, 0xdd, 0x00, 0xff}}},
     79     {{{    55,   -113,     57}, 0, {     0,      0}, {0xa5, 0xce, 0x48, 0xff}}},
     80     {{{   128,     -2,    -94}, 0, {     0,      0}, {0xda, 0x45, 0x9d, 0xff}}},
     81     {{{    55,   -113,    -57}, 0, {     0,      0}, {0xa5, 0xce, 0xb8, 0xff}}},
     82 };
     83 
     84 // 0x05000210
     85 static const Vtx spindrift_seg5_vertex_05000210[] = {
     86     {{{    55,   -113,    -57}, 0, {     0,      0}, {0xa5, 0xce, 0xb8, 0x00}}},
     87     {{{    55,   -113,     57}, 0, {     0,      0}, {0xa5, 0xce, 0x48, 0x00}}},
     88     {{{     0,    -57,      0}, 0, {     0,      0}, {0x87, 0xdd, 0x00, 0x00}}},
     89     {{{   128,     -2,    -94}, 0, {     0,      0}, {0xda, 0x45, 0x9d, 0xff}}},
     90     {{{    24,    -12,    -56}, 0, {     0,      0}, {0xa8, 0x22, 0xac, 0xff}}},
     91     {{{   128,     -2,     94}, 0, {     0,      0}, {0xda, 0x45, 0x63, 0xff}}},
     92     {{{    24,    -12,     56}, 0, {     0,      0}, {0xa9, 0x22, 0x54, 0xff}}},
     93     {{{   138,     66,      0}, 0, {     0,      0}, {0xe3, 0x7b, 0x00, 0xff}}},
     94     {{{    70,     50,      0}, 0, {     0,      0}, {0xcb, 0x73, 0x00, 0xff}}},
     95 };
     96 
     97 // 0x050002A0 - 0x05000328
     98 const Gfx spindrift_seg5_dl_050002A0[] = {
     99     gsSPLight(&spindrift_seg5_lights_05000048.l, 1),
    100     gsSPLight(&spindrift_seg5_lights_05000048.a, 2),
    101     gsSPVertex(spindrift_seg5_vertex_050000C0, 6, 0),
    102     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  2, 0x0),
    103     gsSP2Triangles( 1,  3,  2, 0x0,  4,  5,  2, 0x0),
    104     gsSP1Triangle( 5,  0,  2, 0x0),
    105     gsSPLight(&spindrift_seg5_lights_05000030.l, 1),
    106     gsSPLight(&spindrift_seg5_lights_05000030.a, 2),
    107     gsSPVertex(spindrift_seg5_vertex_05000120, 6, 0),
    108     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    109     gsSP2Triangles( 1,  0,  4, 0x0,  4,  0,  5, 0x0),
    110     gsSP1Triangle( 5,  0,  3, 0x0),
    111     gsSPEndDisplayList(),
    112 };
    113 
    114 // 0x05000328 - 0x050003D8
    115 const Gfx spindrift_seg5_dl_05000328[] = {
    116     gsSPClearGeometryMode(G_CULL_BACK),
    117     gsSPLight(&spindrift_seg5_lights_05000090.l, 1),
    118     gsSPLight(&spindrift_seg5_lights_05000090.a, 2),
    119     gsSPVertex(spindrift_seg5_vertex_05000180, 9, 0),
    120     gsSP2Triangles( 0,  1,  2, 0x0,  1,  0,  3, 0x0),
    121     gsSP2Triangles( 0,  4,  3, 0x0,  1,  5,  6, 0x0),
    122     gsSP2Triangles( 7,  4,  0, 0x0,  5,  4,  8, 0x0),
    123     gsSP2Triangles( 5,  1,  3, 0x0,  4,  5,  3, 0x0),
    124     gsSPLight(&spindrift_seg5_lights_05000078.l, 1),
    125     gsSPLight(&spindrift_seg5_lights_05000078.a, 2),
    126     gsSPVertex(spindrift_seg5_vertex_05000210, 9, 0),
    127     gsSP2Triangles( 0,  1,  2, 0x0,  3,  0,  4, 0x0),
    128     gsSP2Triangles( 1,  5,  6, 0x0,  5,  7,  8, 0x0),
    129     gsSP1Triangle( 8,  7,  3, 0x0),
    130     gsSPSetGeometryMode(G_CULL_BACK),
    131     gsSPEndDisplayList(),
    132 };