sm64

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

model.inc.c (10715B)


      1 // Birds
      2 
      3 // 0x05000000
      4 static const Lights1 birds_seg5_lights_05000000 = gdSPDefLights1(
      5     0x07, 0x24, 0x2c,
      6     0x1d, 0x91, 0xb0, 0x28, 0x28, 0x28
      7 );
      8 
      9 // 0x05000018
     10 static const Lights1 birds_seg5_lights_05000018 = gdSPDefLights1(
     11     0x33, 0x27, 0x0d,
     12     0xce, 0x9d, 0x34, 0x28, 0x28, 0x28
     13 );
     14 
     15 // 0x05000030
     16 static const Lights1 birds_seg5_lights_05000030 = gdSPDefLights1(
     17     0x3f, 0x3f, 0x3f,
     18     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
     19 );
     20 
     21 // 0x05000048
     22 static const Vtx birds_seg5_vertex_05000048[] = {
     23     {{{   178,      2,     39}, 0, {     0,      0}, {0x0d, 0x7e, 0x00, 0x00}}},
     24     {{{   122,     -4,    -33}, 0, {     0,      0}, {0x10, 0x79, 0xde, 0x00}}},
     25     {{{    97,     10,     13}, 0, {     0,      0}, {0x0b, 0x7e, 0xff, 0x00}}},
     26     {{{    47,      4,     47}, 0, {     0,      0}, {0xfe, 0x7c, 0x1b, 0xff}}},
     27     {{{    53,     14,      7}, 0, {     0,      0}, {0xfe, 0x7e, 0xf8, 0xff}}},
     28     {{{     0,      5,     32}, 0, {     0,      0}, {0xf0, 0x7d, 0x03, 0xff}}},
     29     {{{    27,      9,     16}, 0, {     0,      0}, {0xee, 0x7d, 0x05, 0xff}}},
     30     {{{    53,     -8,    -58}, 0, {     0,      0}, {0x0a, 0x78, 0xd8, 0xff}}},
     31     {{{    -4,     -6,    -64}, 0, {     0,      0}, {0xf1, 0x7b, 0xe9, 0xff}}},
     32 };
     33 
     34 // 0x050000D8
     35 static const Vtx birds_seg5_vertex_050000D8[] = {
     36     {{{  -143,     -7,    -29}, 0, {     0,      0}, {0x16, 0x94, 0xc2, 0x00}}},
     37     {{{   -86,    -11,     -2}, 0, {     0,      0}, {0x16, 0x94, 0xc2, 0x00}}},
     38     {{{  -154,    -21,     -9}, 0, {     0,      0}, {0x16, 0x94, 0xc2, 0x00}}},
     39 };
     40 
     41 // 0x05000108
     42 static const Vtx birds_seg5_vertex_05000108[] = {
     43     {{{  -154,    -21,      9}, 0, {     0,      0}, {0x16, 0x94, 0x3e, 0x00}}},
     44     {{{   -86,    -11,      2}, 0, {     0,      0}, {0x16, 0x94, 0x3e, 0x00}}},
     45     {{{  -143,     -7,     29}, 0, {     0,      0}, {0x16, 0x94, 0x3e, 0x00}}},
     46 };
     47 
     48 // 0x05000138
     49 static const Vtx birds_seg5_vertex_05000138[] = {
     50     {{{  -152,    -30,    -17}, 0, {     0,      0}, {0x26, 0x87, 0x00, 0x00}}},
     51     {{{   -80,     -7,      0}, 0, {     0,      0}, {0x26, 0x87, 0x00, 0x00}}},
     52     {{{  -152,    -30,     17}, 0, {     0,      0}, {0x26, 0x87, 0x00, 0x00}}},
     53 };
     54 
     55 // 0x05000168
     56 static const Vtx birds_seg5_vertex_05000168[] = {
     57     {{{    97,     10,    -13}, 0, {     0,      0}, {0x0b, 0x7e, 0x01, 0x00}}},
     58     {{{   122,     -4,     33}, 0, {     0,      0}, {0x10, 0x79, 0x22, 0x00}}},
     59     {{{   178,      2,    -39}, 0, {     0,      0}, {0x0d, 0x7e, 0x00, 0x00}}},
     60     {{{    47,      4,    -47}, 0, {     0,      0}, {0xfe, 0x7c, 0xe5, 0xff}}},
     61     {{{    53,     14,     -7}, 0, {     0,      0}, {0xff, 0x7f, 0x02, 0xff}}},
     62     {{{    27,      9,    -16}, 0, {     0,      0}, {0xf1, 0x7d, 0x06, 0xff}}},
     63     {{{     0,      5,    -32}, 0, {     0,      0}, {0xf0, 0x7d, 0xfd, 0xff}}},
     64     {{{    -4,     -6,     64}, 0, {     0,      0}, {0xf7, 0x7c, 0x14, 0xff}}},
     65     {{{    53,     -8,     58}, 0, {     0,      0}, {0xfa, 0x79, 0x25, 0xff}}},
     66 };
     67 
     68 // 0x050001F8
     69 static const Vtx birds_seg5_vertex_050001F8[] = {
     70     {{{    69,      4,    -40}, 0, {     0,      0}, {0x40, 0x26, 0x9a, 0x00}}},
     71     {{{    78,    -51,    -21}, 0, {     0,      0}, {0x27, 0xae, 0xa8, 0x00}}},
     72     {{{    -1,      0,    -56}, 0, {     0,      0}, {0xf4, 0xc6, 0x90, 0x00}}},
     73     {{{    69,      4,     40}, 0, {     0,      0}, {0x40, 0x26, 0x66, 0xff}}},
     74     {{{    10,     48,     56}, 0, {     0,      0}, {0xef, 0x41, 0x6b, 0xff}}},
     75     {{{    -1,      0,     56}, 0, {     0,      0}, {0xf4, 0xc6, 0x70, 0xff}}},
     76     {{{   -88,     21,      0}, 0, {     0,      0}, {0xaa, 0x5d, 0x00, 0xff}}},
     77     {{{  -103,    -10,    -11}, 0, {     0,      0}, {0xa7, 0x30, 0xb4, 0xff}}},
     78     {{{  -103,    -10,     11}, 0, {     0,      0}, {0xa7, 0x30, 0x4c, 0xff}}},
     79     {{{    83,    -57,      0}, 0, {     0,      0}, {0xdd, 0x87, 0x00, 0xff}}},
     80     {{{    -9,    -30,      0}, 0, {     0,      0}, {0xe0, 0x86, 0x00, 0xff}}},
     81     {{{   113,      0,    -10}, 0, {     0,      0}, {0x4e, 0x32, 0xab, 0xff}}},
     82     {{{   113,      0,     10}, 0, {     0,      0}, {0x4e, 0x32, 0x55, 0xff}}},
     83     {{{    78,    -51,     21}, 0, {     0,      0}, {0x27, 0xae, 0x58, 0xff}}},
     84     {{{  -103,    -10,     11}, 0, {     0,      0}, {0xea, 0x88, 0x1f, 0xff}}},
     85     {{{   113,    -23,      0}, 0, {     0,      0}, {0x62, 0xb0, 0x00, 0xff}}},
     86 };
     87 
     88 // 0x050002F8
     89 static const Vtx birds_seg5_vertex_050002F8[] = {
     90     {{{    83,    -57,      0}, 0, {     0,      0}, {0x60, 0xad, 0x00, 0xff}}},
     91     {{{   113,    -23,      0}, 0, {     0,      0}, {0x62, 0xb0, 0x00, 0x00}}},
     92     {{{    78,    -51,     21}, 0, {     0,      0}, {0x27, 0xae, 0x58, 0x00}}},
     93     {{{    78,    -51,    -21}, 0, {     0,      0}, {0x27, 0xae, 0xa8, 0xff}}},
     94     {{{  -103,    -10,    -11}, 0, {     0,      0}, {0xa7, 0x30, 0xb4, 0xff}}},
     95     {{{   -88,     21,      0}, 0, {     0,      0}, {0xaa, 0x5d, 0x00, 0xff}}},
     96     {{{    10,     48,    -56}, 0, {     0,      0}, {0xef, 0x41, 0x95, 0xff}}},
     97     {{{    -1,      0,    -56}, 0, {     0,      0}, {0xf4, 0xc6, 0x90, 0xff}}},
     98     {{{    10,     48,     56}, 0, {     0,      0}, {0xef, 0x41, 0x6b, 0xff}}},
     99     {{{  -103,    -10,     11}, 0, {     0,      0}, {0xa7, 0x30, 0x4c, 0xff}}},
    100     {{{  -103,    -10,    -11}, 0, {     0,      0}, {0xea, 0x88, 0xe1, 0xff}}},
    101     {{{    -9,    -30,      0}, 0, {     0,      0}, {0xe0, 0x86, 0x00, 0xff}}},
    102     {{{  -103,    -10,     11}, 0, {     0,      0}, {0xea, 0x88, 0x1f, 0xff}}},
    103     {{{    83,    -57,      0}, 0, {     0,      0}, {0xdd, 0x87, 0x00, 0xff}}},
    104     {{{    -1,      0,     56}, 0, {     0,      0}, {0xf4, 0xc6, 0x70, 0xff}}},
    105     {{{    69,      4,    -40}, 0, {     0,      0}, {0x40, 0x26, 0x9a, 0xff}}},
    106 };
    107 
    108 // 0x050003F8
    109 static const Vtx birds_seg5_vertex_050003F8[] = {
    110     {{{    -1,      0,     56}, 0, {     0,      0}, {0xf4, 0xc6, 0x70, 0xff}}},
    111     {{{    78,    -51,     21}, 0, {     0,      0}, {0x27, 0xae, 0x58, 0x00}}},
    112     {{{    69,      4,     40}, 0, {     0,      0}, {0x40, 0x26, 0x66, 0x00}}},
    113 };
    114 
    115 // 0x05000428
    116 static const Vtx birds_seg5_vertex_05000428[] = {
    117     {{{    69,      4,    -40}, 0, {     0,      0}, {0x40, 0x26, 0x9a, 0x00}}},
    118     {{{    10,     48,    -56}, 0, {     0,      0}, {0xef, 0x41, 0x95, 0x00}}},
    119     {{{    18,     78,      0}, 0, {     0,      0}, {0x54, 0x5e, 0x00, 0x00}}},
    120     {{{    10,     48,     56}, 0, {     0,      0}, {0xef, 0x41, 0x6b, 0xff}}},
    121     {{{    18,     78,      0}, 0, {     0,      0}, {0xc4, 0x6f, 0x00, 0xff}}},
    122     {{{   -88,     21,      0}, 0, {     0,      0}, {0xaa, 0x5d, 0x00, 0xff}}},
    123     {{{   113,      0,    -10}, 0, {     0,      0}, {0x4e, 0x32, 0xab, 0xff}}},
    124     {{{    69,     33,      0}, 0, {     0,      0}, {0x4b, 0x65, 0x00, 0xff}}},
    125     {{{   113,      0,     10}, 0, {     0,      0}, {0x4e, 0x32, 0x55, 0xff}}},
    126     {{{    69,      4,     40}, 0, {     0,      0}, {0x40, 0x26, 0x66, 0xff}}},
    127 };
    128 
    129 // 0x050004C8
    130 static const Vtx birds_seg5_vertex_050004C8[] = {
    131     {{{   113,    -23,      0}, 0, {     0,      0}, {0x62, 0xb0, 0x00, 0x00}}},
    132     {{{   113,      0,    -10}, 0, {     0,      0}, {0x4e, 0x32, 0xab, 0x00}}},
    133     {{{   143,     -2,      0}, 0, {     0,      0}, {0x24, 0xcb, 0x93, 0x00}}},
    134     {{{   113,      0,     10}, 0, {     0,      0}, {0x4e, 0x32, 0x55, 0xff}}},
    135     {{{   143,     -2,      0}, 0, {     0,      0}, {0x24, 0xcb, 0x6d, 0xff}}},
    136     {{{   143,     -2,      0}, 0, {     0,      0}, {0x07, 0x7e, 0x00, 0xff}}},
    137 };
    138 
    139 // 0x05000528 - 0x05000598
    140 const Gfx birds_seg5_dl_05000528[] = {
    141     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    142     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    143     gsSPVertex(birds_seg5_vertex_05000048, 9, 0),
    144     gsSP2Triangles( 0,  1,  2, 0x0,  2,  3,  0, 0x0),
    145     gsSP2Triangles( 4,  3,  2, 0x0,  5,  3,  6, 0x0),
    146     gsSP2Triangles( 4,  7,  8, 0x0,  4,  8,  6, 0x0),
    147     gsSP2Triangles( 6,  8,  5, 0x0,  6,  3,  4, 0x0),
    148     gsSP2Triangles( 2,  1,  7, 0x0,  2,  7,  4, 0x0),
    149     gsSPEndDisplayList(),
    150 };
    151 
    152 // 0x05000598 - 0x05000600
    153 const Gfx birds_seg5_dl_05000598[] = {
    154     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    155     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    156     gsSPVertex(birds_seg5_vertex_050000D8, 3, 0),
    157     gsSP1Triangle( 0,  1,  2, 0x0),
    158     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    159     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    160     gsSPVertex(birds_seg5_vertex_05000108, 3, 0),
    161     gsSP1Triangle( 0,  1,  2, 0x0),
    162     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    163     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    164     gsSPVertex(birds_seg5_vertex_05000138, 3, 0),
    165     gsSP1Triangle( 0,  1,  2, 0x0),
    166     gsSPEndDisplayList(),
    167 };
    168 
    169 // 0x05000600 - 0x05000670
    170 const Gfx birds_seg5_dl_05000600[] = {
    171     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    172     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    173     gsSPVertex(birds_seg5_vertex_05000168, 9, 0),
    174     gsSP2Triangles( 0,  1,  2, 0x0,  2,  3,  0, 0x0),
    175     gsSP2Triangles( 0,  3,  4, 0x0,  5,  3,  6, 0x0),
    176     gsSP2Triangles( 5,  7,  8, 0x0,  5,  8,  4, 0x0),
    177     gsSP2Triangles( 6,  7,  5, 0x0,  4,  3,  5, 0x0),
    178     gsSP2Triangles( 4,  8,  1, 0x0,  4,  1,  0, 0x0),
    179     gsSPEndDisplayList(),
    180 };
    181 
    182 // 0x05000670 - 0x050007E0
    183 const Gfx birds_seg5_dl_05000670[] = {
    184     gsSPLight(&birds_seg5_lights_05000000.l, 1),
    185     gsSPLight(&birds_seg5_lights_05000000.a, 2),
    186     gsSPVertex(birds_seg5_vertex_050001F8, 16, 0),
    187     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    188     gsSP2Triangles( 6,  7,  8, 0x0,  1,  9, 10, 0x0),
    189     gsSP2Triangles( 1,  0, 11, 0x0, 12,  3, 13, 0x0),
    190     gsSP2Triangles( 8,  5,  4, 0x0,  5, 14, 10, 0x0),
    191     gsSP2Triangles(13, 15, 12, 0x0, 11, 15,  1, 0x0),
    192     gsSPVertex(birds_seg5_vertex_050002F8, 16, 0),
    193     gsSP2Triangles( 0,  1,  2, 0x0,  3,  1,  0, 0x0),
    194     gsSP2Triangles( 4,  5,  6, 0x0,  6,  7,  4, 0x0),
    195     gsSP2Triangles( 8,  5,  9, 0x0, 10,  7, 11, 0x0),
    196     gsSP2Triangles(11, 12, 10, 0x0, 11, 13,  2, 0x0),
    197     gsSP2Triangles( 2, 14, 11, 0x0, 11,  7,  3, 0x0),
    198     gsSP1Triangle( 7,  6, 15, 0x0),
    199     gsSPVertex(birds_seg5_vertex_050003F8, 3, 0),
    200     gsSP1Triangle( 0,  1,  2, 0x0),
    201     gsSPLight(&birds_seg5_lights_05000030.l, 1),
    202     gsSPLight(&birds_seg5_lights_05000030.a, 2),
    203     gsSPVertex(birds_seg5_vertex_05000428, 10, 0),
    204     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    205     gsSP2Triangles( 6,  0,  7, 0x0,  7,  8,  6, 0x0),
    206     gsSP2Triangles( 9,  7,  2, 0x0,  2,  7,  0, 0x0),
    207     gsSP2Triangles( 2,  3,  9, 0x0,  7,  9,  8, 0x0),
    208     gsSP1Triangle( 5,  4,  1, 0x0),
    209     gsSPLight(&birds_seg5_lights_05000018.l, 1),
    210     gsSPLight(&birds_seg5_lights_05000018.a, 2),
    211     gsSPVertex(birds_seg5_vertex_050004C8, 6, 0),
    212     gsSP2Triangles( 0,  1,  2, 0x0,  3,  0,  4, 0x0),
    213     gsSP1Triangle( 1,  3,  5, 0x0),
    214     gsSPEndDisplayList(),
    215 };