sm64

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

model.inc.c (9042B)


      1 // 0x0700BCD8 - 0x0700BCE0
      2 static const Lights1 castle_grounds_seg7_lights_0700BCD8 = gdSPDefLights1(
      3     0x3d, 0x3d, 0x44,
      4     0x99, 0x99, 0xac, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x0700BCF0 - 0x0700BD08
      8 static const Lights1 castle_grounds_seg7_lights_0700BCF0 = gdSPDefLights1(
      9     0x58, 0x58, 0x5a,
     10     0xdc, 0xdc, 0xe3, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x0700BD08 - 0x0700BD20
     14 static const Lights1 castle_grounds_seg7_lights_0700BD08 = gdSPDefLights1(
     15     0x66, 0x66, 0x66,
     16     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
     17 );
     18 
     19 // 0x0700BD20 - 0x0700BD38
     20 static const Lights1 castle_grounds_seg7_lights_0700BD20 = gdSPDefLights1(
     21     0x4e, 0x4e, 0x53,
     22     0xc4, 0xc4, 0xd0, 0x28, 0x28, 0x28
     23 );
     24 
     25 // 0x0700BD38 - 0x0700BD50
     26 static const Lights1 castle_grounds_seg7_lights_0700BD38 = gdSPDefLights1(
     27     0x45, 0x45, 0x4b,
     28     0xad, 0xad, 0xbc, 0x28, 0x28, 0x28
     29 );
     30 
     31 // 0x0700BD50 - 0x0700BE10
     32 static const Vtx castle_grounds_seg7_vertex_0700BD50[] = {
     33     {{{  2283,   -422,   2072}, 0, {     6,   1824}, {0x00, 0x7f, 0x00, 0xff}}},
     34     {{{  2485,   -422,   2072}, 0, {   206,   2104}, {0x00, 0x7f, 0x00, 0xff}}},
     35     {{{  2485,   -422,   1849}, 0, {   300,   1608}, {0x00, 0x7f, 0x00, 0xff}}},
     36     {{{  2283,   -422,   1849}, 0, {   100,   1324}, {0x00, 0x7f, 0x00, 0xff}}},
     37     {{{  2485,     89,   2072}, 0, {     0,   1996}, {0x00, 0x00, 0x81, 0xff}}},
     38     {{{  2283,   -422,   2072}, 0, {   432,    648}, {0x00, 0x00, 0x81, 0xff}}},
     39     {{{  2283,     89,   2072}, 0, {     0,    648}, {0x00, 0x00, 0x81, 0xff}}},
     40     {{{  2485,   -422,   2072}, 0, {   432,   1996}, {0x00, 0x00, 0x81, 0xff}}},
     41     {{{  2485,     89,   1849}, 0, {     0,   2012}, {0x81, 0x00, 0x00, 0xff}}},
     42     {{{  2485,   -422,   2072}, 0, {   820,    536}, {0x81, 0x00, 0x00, 0xff}}},
     43     {{{  2485,     89,   2072}, 0, {     0,    536}, {0x81, 0x00, 0x00, 0xff}}},
     44     {{{  2485,   -422,   1849}, 0, {   820,   2012}, {0x81, 0x00, 0x00, 0xff}}},
     45 };
     46 
     47 // 0x0700BE10 - 0x0700BE90
     48 static const Vtx castle_grounds_seg7_vertex_0700BE10[] = {
     49     {{{  2283,     89,   1849}, 0, {     0,   1996}, {0x00, 0x00, 0x7f, 0xff}}},
     50     {{{  2485,   -422,   1849}, 0, {   536,    648}, {0x00, 0x00, 0x7f, 0xff}}},
     51     {{{  2485,     89,   1849}, 0, {     0,    648}, {0x00, 0x00, 0x7f, 0xff}}},
     52     {{{  2283,   -422,   1849}, 0, {   536,   1996}, {0x00, 0x00, 0x7f, 0xff}}},
     53     {{{  2283,     89,   2072}, 0, {     0,   2012}, {0x7f, 0x00, 0x00, 0xff}}},
     54     {{{  2283,   -422,   1849}, 0, {   332,   -232}, {0x7f, 0x00, 0x00, 0xff}}},
     55     {{{  2283,     89,   1849}, 0, {     0,   -204}, {0x7f, 0x00, 0x00, 0xff}}},
     56     {{{  2283,   -422,   2072}, 0, {   332,   1984}, {0x7f, 0x00, 0x00, 0xff}}},
     57 };
     58 
     59 // 0x0700BE90 - 0x0700BF50
     60 static const Vtx castle_grounds_seg7_vertex_0700BE90[] = {
     61     {{{  2640,     89,   2223}, 0, {  2012,  -1054}, {0x00, 0x7f, 0x00, 0xff}}},
     62     {{{  2485,     89,   2072}, 0, {  1404,   -440}, {0x00, 0x7f, 0x00, 0xff}}},
     63     {{{  2283,     89,   2072}, 0, {  1400,    368}, {0x00, 0x7f, 0x00, 0xff}}},
     64     {{{  2485,     89,   1849}, 0, {   516,   -446}, {0x00, 0x7f, 0x00, 0xff}}},
     65     {{{  2637,     89,   1711}, 0, {     0,  -1054}, {0x00, 0x7f, 0x00, 0xff}}},
     66     {{{  2128,     89,   2226}, 0, {  2012,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     67     {{{  2283,     89,   1849}, 0, {   512,    360}, {0x00, 0x7f, 0x00, 0xff}}},
     68     {{{  2125,     89,   1714}, 0, {     0,    990}, {0x00, 0x7f, 0x00, 0xff}}},
     69     {{{  2708,    -10,   1639}, 0, {  4588,    582}, {0x66, 0x4a, 0x00, 0xff}}},
     70     {{{  2637,     89,   1711}, 0, {  4136,      0}, {0x66, 0x4a, 0x00, 0xff}}},
     71     {{{  2757,    -72,   2338}, 0, {   108,    964}, {0x66, 0x4a, 0x00, 0xff}}},
     72     {{{  2640,     89,   2223}, 0, {   856,      0}, {0x66, 0x4a, 0x00, 0xff}}},
     73 };
     74 
     75 // 0x0700BF50 - 0x0700BFB0
     76 static const Vtx castle_grounds_seg7_vertex_0700BF50[] = {
     77     {{{  2102,     58,   1692}, 0, {  3524,    158}, {0x00, 0x49, 0x99, 0xff}}},
     78     {{{  2125,     89,   1714}, 0, {  3376,      0}, {0x00, 0x49, 0x99, 0xff}}},
     79     {{{  2637,     89,   1711}, 0, {     0,      0}, {0x00, 0x49, 0x99, 0xff}}},
     80     {{{  2102,     58,   1692}, 0, {  3524,    158}, {0x00, 0x4a, 0x9a, 0xff}}},
     81     {{{  2637,     89,   1711}, 0, {     0,      0}, {0x00, 0x4a, 0x9a, 0xff}}},
     82     {{{  2708,    -10,   1639}, 0, {  -504,    582}, {0x00, 0x4a, 0x9a, 0xff}}},
     83 };
     84 
     85 // 0x0700BFB0 - 0x0700C010
     86 static const Vtx castle_grounds_seg7_vertex_0700BFB0[] = {
     87     {{{  2076,     15,   2280}, 0, {  3540,    424}, {0x9a, 0x4b, 0x00, 0xff}}},
     88     {{{  2125,     89,   1714}, 0, {   -88,      0}, {0x9a, 0x4b, 0x00, 0xff}}},
     89     {{{  2102,     58,   1692}, 0, {  -232,    158}, {0x9a, 0x4b, 0x00, 0xff}}},
     90     {{{  2076,     15,   2280}, 0, {  3540,    424}, {0x99, 0x49, 0x00, 0xff}}},
     91     {{{  2128,     89,   2226}, 0, {  3200,      0}, {0x99, 0x49, 0x00, 0xff}}},
     92     {{{  2125,     89,   1714}, 0, {   -88,      0}, {0x99, 0x49, 0x00, 0xff}}},
     93 };
     94 
     95 // 0x0700C010 - 0x0700C070
     96 static const Vtx castle_grounds_seg7_vertex_0700C010[] = {
     97     {{{  2757,    -72,   2338}, 0, {  2752,    964}, {0x00, 0x4a, 0x67, 0xff}}},
     98     {{{  2640,     89,   2223}, 0, {  2012,      0}, {0x00, 0x4a, 0x67, 0xff}}},
     99     {{{  2128,     89,   2226}, 0, { -1240,    -30}, {0x00, 0x4a, 0x67, 0xff}}},
    100     {{{  2757,    -72,   2338}, 0, {  2752,    964}, {0x00, 0x4a, 0x66, 0xff}}},
    101     {{{  2128,     89,   2226}, 0, { -1240,    -30}, {0x00, 0x4a, 0x66, 0xff}}},
    102     {{{  2076,     15,   2280}, 0, { -1576,    424}, {0x00, 0x4a, 0x66, 0xff}}},
    103 };
    104 
    105 // 0x0700C070 - 0x0700C110
    106 static const Gfx castle_grounds_seg7_dl_0700C070[] = {
    107     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09004800),
    108     gsDPLoadSync(),
    109     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    110     gsSPLight(&castle_grounds_seg7_lights_0700BCD8.l, 1),
    111     gsSPLight(&castle_grounds_seg7_lights_0700BCD8.a, 2),
    112     gsSPVertex(castle_grounds_seg7_vertex_0700BD50, 12, 0),
    113     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    114     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
    115     gsSP2Triangles( 8,  9, 10, 0x0,  8, 11,  9, 0x0),
    116     gsSPLight(&castle_grounds_seg7_lights_0700BCF0.l, 1),
    117     gsSPLight(&castle_grounds_seg7_lights_0700BCF0.a, 2),
    118     gsSPVertex(castle_grounds_seg7_vertex_0700BE10, 8, 0),
    119     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    120     gsSP2Triangles( 4,  5,  6, 0x0,  4,  7,  5, 0x0),
    121     gsSPEndDisplayList(),
    122 };
    123 
    124 // 0x0700C110 - 0x0700C210
    125 static const Gfx castle_grounds_seg7_dl_0700C110[] = {
    126     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09001000),
    127     gsDPLoadSync(),
    128     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
    129     gsSPLight(&castle_grounds_seg7_lights_0700BD08.l, 1),
    130     gsSPLight(&castle_grounds_seg7_lights_0700BD08.a, 2),
    131     gsSPVertex(castle_grounds_seg7_vertex_0700BE90, 12, 0),
    132     gsSP2Triangles( 0,  1,  2, 0x0,  0,  3,  1, 0x0),
    133     gsSP2Triangles( 0,  4,  3, 0x0,  0,  2,  5, 0x0),
    134     gsSP2Triangles( 6,  4,  7, 0x0,  6,  3,  4, 0x0),
    135     gsSP2Triangles( 2,  6,  7, 0x0,  5,  2,  7, 0x0),
    136     gsSP2Triangles( 8,  9, 10, 0x0,  9, 11, 10, 0x0),
    137     gsSPLight(&castle_grounds_seg7_lights_0700BD20.l, 1),
    138     gsSPLight(&castle_grounds_seg7_lights_0700BD20.a, 2),
    139     gsSPVertex(castle_grounds_seg7_vertex_0700BF50, 6, 0),
    140     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    141     gsSPLight(&castle_grounds_seg7_lights_0700BD38.l, 1),
    142     gsSPLight(&castle_grounds_seg7_lights_0700BD38.a, 2),
    143     gsSPVertex(castle_grounds_seg7_vertex_0700BFB0, 6, 0),
    144     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    145     gsSPLight(&castle_grounds_seg7_lights_0700BCF0.l, 1),
    146     gsSPLight(&castle_grounds_seg7_lights_0700BCF0.a, 2),
    147     gsSPVertex(castle_grounds_seg7_vertex_0700C010, 6, 0),
    148     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
    149     gsSPEndDisplayList(),
    150 };
    151 
    152 // 0x0700C210 - 0x0700C2A0
    153 const Gfx castle_grounds_seg7_dl_0700C210[] = {
    154     gsDPPipeSync(),
    155     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
    156     gsSPClearGeometryMode(G_SHADING_SMOOTH),
    157     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),
    158     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
    159     gsDPTileSync(),
    160     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
    161     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
    162     gsSPDisplayList(castle_grounds_seg7_dl_0700C070),
    163     gsDPTileSync(),
    164     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD),
    165     gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
    166     gsSPDisplayList(castle_grounds_seg7_dl_0700C110),
    167     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
    168     gsDPPipeSync(),
    169     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    170     gsSPSetGeometryMode(G_SHADING_SMOOTH),
    171     gsSPEndDisplayList(),
    172 };