sm64

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

model.inc.c (4495B)


      1 // Water Splash
      2 
      3 // 0x0402A588
      4 static const Vtx water_splash_seg4_vertex_0402A588[] = {
      5     {{{   -64,      0,      0}, 0, {     0,   2016}, {0xff, 0xff, 0xff, 0xff}}},
      6     {{{    64,      0,      0}, 0, {   992,   2016}, {0xff, 0xff, 0xff, 0xff}}},
      7     {{{    64,    256,      0}, 0, {   992,      0}, {0xff, 0xff, 0xff, 0xff}}},
      8     {{{   -64,    256,      0}, 0, {     0,      0}, {0xff, 0xff, 0xff, 0xff}}},
      9 };
     10 
     11 // 0x0402A5C8
     12 ALIGNED8 static const Texture water_splash_seg4_texture_0402A5C8[] = {
     13 #include "actors/water_splash/water_splash_0.rgba16.inc.c"
     14 };
     15 
     16 // 0x0402B5C8
     17 ALIGNED8 static const Texture water_splash_seg4_texture_0402B5C8[] = {
     18 #include "actors/water_splash/water_splash_1.rgba16.inc.c"
     19 };
     20 
     21 // 0x0402C5C8
     22 ALIGNED8 static const Texture water_splash_seg4_texture_0402C5C8[] = {
     23 #include "actors/water_splash/water_splash_2.rgba16.inc.c"
     24 };
     25 
     26 // 0x0402D5C8
     27 ALIGNED8 static const Texture water_splash_seg4_texture_0402D5C8[] = {
     28 #include "actors/water_splash/water_splash_3.rgba16.inc.c"
     29 };
     30 
     31 // 0x0402E5C8
     32 ALIGNED8 static const Texture water_splash_seg4_texture_0402E5C8[] = {
     33 #include "actors/water_splash/water_splash_4.rgba16.inc.c"
     34 };
     35 
     36 // 0x0402F5C8
     37 ALIGNED8 static const Texture water_splash_seg4_texture_0402F5C8[] = {
     38 #include "actors/water_splash/water_splash_5.rgba16.inc.c"
     39 };
     40 
     41 // 0x040305C8
     42 ALIGNED8 static const Texture water_splash_seg4_texture_040305C8[] = {
     43 #include "actors/water_splash/water_splash_6.rgba16.inc.c"
     44 };
     45 
     46 // 0x040315C8
     47 ALIGNED8 static const Texture water_splash_seg4_texture_040315C8[] = {
     48 #include "actors/water_splash/water_splash_7.rgba16.inc.c"
     49 };
     50 
     51 // 0x040325C8 - 0x04032640
     52 const Gfx water_splash_seg4_dl_040325C8[] = {
     53     gsSPClearGeometryMode(G_LIGHTING),
     54     gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
     55     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     56     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     57     gsDPLoadSync(),
     58     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     59     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     60     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
     61     gsSPVertex(water_splash_seg4_vertex_0402A588, 4, 0),
     62     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     63     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     64     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     65     gsSPSetGeometryMode(G_LIGHTING),
     66     gsSPEndDisplayList(),
     67 };
     68 
     69 // 0x04032640 - 0x04032658
     70 const Gfx water_splash_seg4_dl_04032640[] = {
     71     gsDPPipeSync(),
     72     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402A5C8),
     73     gsSPBranchList(water_splash_seg4_dl_040325C8),
     74 };
     75 
     76 // 0x04032658 - 0x04032670
     77 const Gfx water_splash_seg4_dl_04032658[] = {
     78     gsDPPipeSync(),
     79     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402B5C8),
     80     gsSPBranchList(water_splash_seg4_dl_040325C8),
     81 };
     82 
     83 // 0x04032670 - 0x04032688
     84 const Gfx water_splash_seg4_dl_04032670[] = {
     85     gsDPPipeSync(),
     86     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402C5C8),
     87     gsSPBranchList(water_splash_seg4_dl_040325C8),
     88 };
     89 
     90 // 0x04032688 - 0x040326A0
     91 const Gfx water_splash_seg4_dl_04032688[] = {
     92     gsDPPipeSync(),
     93     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402D5C8),
     94     gsSPBranchList(water_splash_seg4_dl_040325C8),
     95 };
     96 
     97 // 0x040326A0 - 0x040326B8
     98 const Gfx water_splash_seg4_dl_040326A0[] = {
     99     gsDPPipeSync(),
    100     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402E5C8),
    101     gsSPBranchList(water_splash_seg4_dl_040325C8),
    102 };
    103 
    104 // 0x040326B8 - 0x040326D0
    105 const Gfx water_splash_seg4_dl_040326B8[] = {
    106     gsDPPipeSync(),
    107     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_0402F5C8),
    108     gsSPBranchList(water_splash_seg4_dl_040325C8),
    109 };
    110 
    111 // 0x040326D0 - 0x040326E8
    112 const Gfx water_splash_seg4_dl_040326D0[] = {
    113     gsDPPipeSync(),
    114     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_040305C8),
    115     gsSPBranchList(water_splash_seg4_dl_040325C8),
    116 };
    117 
    118 // 0x040326E8 - 0x04032700
    119 const Gfx water_splash_seg4_dl_040326E8[] = {
    120     gsDPPipeSync(),
    121     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, water_splash_seg4_texture_040315C8),
    122     gsSPBranchList(water_splash_seg4_dl_040325C8),
    123 };