sm64

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

model.inc.c (2692B)


      1 // 0x07037C58 - 0x07037C70
      2 static const Lights1 inside_castle_seg7_lights_07037C58 = gdSPDefLights1(
      3     0x37, 0x37, 0x37,
      4     0xdd, 0xdd, 0xdd, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07037C70 - 0x07037D70
      8 static const Vtx inside_castle_seg7_vertex_07037C70[] = {
      9     {{{  3422,    768,   1208}, 0, {   860,    578}, {0x37, 0x37, 0x37, 0xff}}},
     10     {{{  4146,    358,    484}, 0, {  1346,    778}, {0x37, 0x37, 0x37, 0xff}}},
     11     {{{  3422,    358,   1208}, 0, {   778,    706}, {0x37, 0x37, 0x37, 0xff}}},
     12     {{{  3422,    768,  -1667}, 0, {   860,    578}, {0x37, 0x37, 0x37, 0xff}}},
     13     {{{  3422,    358,  -1667}, 0, {   778,    706}, {0x37, 0x37, 0x37, 0xff}}},
     14     {{{  4146,    358,   -943}, 0, {  1346,    778}, {0x37, 0x37, 0x37, 0xff}}},
     15     {{{  4146,    768,   -943}, 0, {  1428,    648}, {0x37, 0x37, 0x37, 0xff}}},
     16     {{{  3174,    768,  -1791}, 0, {   666,    554}, {0x37, 0x37, 0x37, 0xff}}},
     17     {{{  2355,    768,  -1791}, 0, {    22,    474}, {0x37, 0x37, 0x37, 0xff}}},
     18     {{{  2355,    358,  -1791}, 0, {   -58,    604}, {0x37, 0x37, 0x37, 0xff}}},
     19     {{{  3174,    358,  -1791}, 0, {   584,    682}, {0x37, 0x37, 0x37, 0xff}}},
     20     {{{  2355,    768,   1331}, 0, {    22,    474}, {0x37, 0x37, 0x37, 0xff}}},
     21     {{{  3174,    358,   1331}, 0, {   584,    682}, {0x37, 0x37, 0x37, 0xff}}},
     22     {{{  2355,    358,   1331}, 0, {   -58,    604}, {0x37, 0x37, 0x37, 0xff}}},
     23     {{{  3174,    768,   1331}, 0, {   666,    554}, {0x37, 0x37, 0x37, 0xff}}},
     24     {{{  4146,    768,    484}, 0, {  1428,    648}, {0x37, 0x37, 0x37, 0xff}}},
     25 };
     26 
     27 // 0x07037D70 - 0x07037DE8
     28 static const Gfx inside_castle_seg7_dl_07037D70[] = {
     29     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, inside_0900B000),
     30     gsDPLoadSync(),
     31     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     32     gsSPLight(&inside_castle_seg7_lights_07037C58.l, 1),
     33     gsSPLight(&inside_castle_seg7_lights_07037C58.a, 2),
     34     gsSPVertex(inside_castle_seg7_vertex_07037C70, 16, 0),
     35     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     36     gsSP2Triangles( 6,  3,  5, 0x0,  7,  8,  9, 0x0),
     37     gsSP2Triangles( 7,  9, 10, 0x0, 11, 12, 13, 0x0),
     38     gsSP2Triangles(11, 14, 12, 0x0,  0, 15,  1, 0x0),
     39     gsSPEndDisplayList(),
     40 };
     41 
     42 // 0x07037DE8 - 0x07037E38
     43 const Gfx inside_castle_seg7_dl_07037DE8[] = {
     44     gsDPPipeSync(),
     45     gsSPClearGeometryMode(G_LIGHTING),
     46     gsDPSetEnvColor(255, 255, 255, 100),
     47     gsDPSetCombineMode(G_CC_SHADEFADEA, G_CC_SHADEFADEA),
     48     gsSPDisplayList(inside_castle_seg7_dl_07037D70),
     49     gsDPPipeSync(),
     50     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     51     gsDPSetEnvColor(255, 255, 255, 255),
     52     gsSPSetGeometryMode(G_LIGHTING),
     53     gsSPEndDisplayList(),
     54 };