sm64

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

model.inc.c (4880B)


      1 // 0x07004A18 - 0x07004A30
      2 static const Lights1 jrb_seg7_lights_07004A18 = gdSPDefLights1(
      3     0x1e, 0x27, 0x3a,
      4     0x79, 0x9f, 0xeb, 0x28, 0x28, 0x28
      5 );
      6 
      7 // 0x07004A30 - 0x07004A48
      8 static const Lights1 jrb_seg7_lights_07004A30 = gdSPDefLights1(
      9     0x3f, 0x3f, 0x3f,
     10     0xff, 0xff, 0xff, 0x28, 0x28, 0x28
     11 );
     12 
     13 // 0x07004A48 - 0x07004AC8
     14 static const Vtx jrb_seg7_vertex_07004A48[] = {
     15     {{{ -1944,    512,   7211}, 0, { 19276,      0}, {0x75, 0x00, 0x2f, 0xff}}},
     16     {{{ -1675,    512,   6547}, 0, { 15876,      0}, {0x7c, 0x00, 0xe6, 0xff}}},
     17     {{{ -1675,   1024,   6547}, 0, { 15876,   2522}, {0x7c, 0x00, 0xe6, 0xff}}},
     18     {{{ -1944,   1024,   7211}, 0, { 19276,   2522}, {0x75, 0x00, 0x2f, 0xff}}},
     19     {{{ -2073,    512,   6165}, 0, { 12960,      0}, {0x2b, 0x00, 0x89, 0xff}}},
     20     {{{ -2073,   1024,   6165}, 0, { 12960,   2522}, {0xec, 0x00, 0x83, 0xff}}},
     21     {{{ -3017,    512,   6778}, 0, {  7700,      0}, {0xbb, 0x00, 0x96, 0xff}}},
     22     {{{ -3017,   1024,   6778}, 0, {  7700,   2522}, {0xbb, 0x00, 0x96, 0xff}}},
     23 };
     24 
     25 // 0x07004AC8 - 0x07004B88
     26 static const Vtx jrb_seg7_vertex_07004AC8[] = {
     27     {{{ -2771,      0,   1676}, 0, {  1672,    554}, {0xf3, 0x00, 0x7e, 0xff}}},
     28     {{{  -705,      0,   2401}, 0, {  1672,   -520}, {0xd6, 0x00, 0x77, 0xff}}},
     29     {{{  -705,    512,   2401}, 0, {  1840,   -520}, {0xd6, 0x00, 0x77, 0xff}}},
     30     {{{ -4161,    512,   6315}, 0, {  1840,    886}, {0x68, 0x00, 0xb8, 0xff}}},
     31     {{{ -5256,   1024,   4733}, 0, {  2012,   1544}, {0x75, 0x00, 0xd1, 0xff}}},
     32     {{{ -4161,   1024,   6315}, 0, {  2012,    886}, {0x68, 0x00, 0xb8, 0xff}}},
     33     {{{ -5256,    512,   4733}, 0, {  1840,   1544}, {0x7d, 0x00, 0xed, 0xff}}},
     34     {{{ -5170,    614,   3362}, 0, {  1876,   1608}, {0x7a, 0x00, 0x22, 0xff}}},
     35     {{{ -5170,      0,   3362}, 0, {  1672,   1608}, {0x6f, 0x00, 0x3d, 0xff}}},
     36     {{{ -4133,    614,   2187}, 0, {  1876,   1186}, {0x50, 0x00, 0x62, 0xff}}},
     37     {{{ -4133,      0,   2187}, 0, {  1672,   1186}, {0x3f, 0x00, 0x6e, 0xff}}},
     38     {{{ -2771,    614,   1676}, 0, {  1876,    554}, {0x10, 0x00, 0x7d, 0xff}}},
     39 };
     40 
     41 // 0x07004B88 - 0x07004BF0
     42 static const Gfx jrb_seg7_dl_07004B88[] = {
     43     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09001800),
     44     gsDPLoadSync(),
     45     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
     46     gsSPLight(&jrb_seg7_lights_07004A18.l, 1),
     47     gsSPLight(&jrb_seg7_lights_07004A18.a, 2),
     48     gsSPVertex(jrb_seg7_vertex_07004A48, 8, 0),
     49     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     50     gsSP2Triangles( 2,  1,  4, 0x0,  2,  4,  5, 0x0),
     51     gsSP2Triangles( 5,  4,  6, 0x0,  5,  6,  7, 0x0),
     52     gsSPEndDisplayList(),
     53 };
     54 
     55 // 0x07004BF0 - 0x07004C78
     56 static const Gfx jrb_seg7_dl_07004BF0[] = {
     57     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_09004800),
     58     gsDPLoadSync(),
     59     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
     60     gsSPLight(&jrb_seg7_lights_07004A30.l, 1),
     61     gsSPLight(&jrb_seg7_lights_07004A30.a, 2),
     62     gsSPVertex(jrb_seg7_vertex_07004AC8, 12, 0),
     63     gsSP2Triangles( 0,  1,  2, 0x0,  3,  4,  5, 0x0),
     64     gsSP2Triangles( 3,  6,  4, 0x0,  6,  7,  4, 0x0),
     65     gsSP2Triangles( 6,  8,  7, 0x0,  8,  9,  7, 0x0),
     66     gsSP2Triangles( 8, 10,  9, 0x0, 10, 11,  9, 0x0),
     67     gsSP2Triangles(10,  0, 11, 0x0,  0,  2, 11, 0x0),
     68     gsSPEndDisplayList(),
     69 };
     70 
     71 // 0x07004C78 - 0x07004D40
     72 const Gfx jrb_seg7_dl_07004C78[] = {
     73     gsDPPipeSync(),
     74     gsDPSetCycleType(G_CYC_2CYCLE),
     75     gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
     76     gsDPSetDepthSource(G_ZS_PIXEL),
     77     gsDPSetFogColor(5, 80, 75, 255),
     78     gsSPFogPosition(900, 1000),
     79     gsSPSetGeometryMode(G_FOG),
     80     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
     81     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),
     82     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     83     gsDPTileSync(),
     84     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),
     85     gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     86     gsSPDisplayList(jrb_seg7_dl_07004B88),
     87     gsDPTileSync(),
     88     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_CLAMP, 6, G_TX_NOLOD),
     89     gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     90     gsSPDisplayList(jrb_seg7_dl_07004BF0),
     91     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     92     gsDPPipeSync(),
     93     gsDPSetCycleType(G_CYC_1CYCLE),
     94     gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_NOOP2),
     95     gsSPClearGeometryMode(G_FOG),
     96     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     97     gsSPEndDisplayList(),
     98 };