sm64

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

model.inc.c (1956B)


      1 // Burn Smoke
      2 
      3 // 0x040217C0
      4 static const Vtx burn_smoke_seg4_vertex_040217C0[] = {
      5     {{{   -50,    -50,      0}, 0, {     0,    992}, {0x14, 0x0a, 0x0a, 0xff}}},
      6     {{{    50,    -50,      0}, 0, {   992,    992}, {0x14, 0x0a, 0x0a, 0xff}}},
      7     {{{    50,     50,      0}, 0, {   992,      0}, {0x14, 0x0a, 0x0a, 0xff}}},
      8     {{{   -50,     50,      0}, 0, {     0,      0}, {0x14, 0x0a, 0x0a, 0xff}}},
      9 };
     10 
     11 // //! Wrong texture format. Called as rgba16, which makes the burn smoke appear
     12 //     as a transparent black burn smoke. Probably meant to show up as white-ish
     13 //     burn smoke, but mistakened for being intended as black smoke.
     14 // 0x04021800
     15 ALIGNED8 static const Texture burn_smoke_seg4_texture_04021800[] = {
     16 #include "actors/burn_smoke/burn_smoke.ia16.inc.c"
     17 };
     18 
     19 // 0x04022000 - 0x04022028
     20 const Gfx burn_smoke_seg4_dl_04022000[] = {
     21     gsDPPipeSync(),
     22     gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
     23     gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
     24     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     25     gsSPEndDisplayList(),
     26 };
     27 
     28 // 0x04022028 - 0x04022048
     29 const Gfx burn_smoke_seg4_dl_04022028[] = {
     30     gsSPVertex(burn_smoke_seg4_vertex_040217C0, 4, 0),
     31     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     32     gsSPEndDisplayList(),
     33 };
     34 
     35 // 0x04022048 - 0x04022070
     36 const Gfx burn_smoke_seg4_dl_04022048[] = {
     37     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     38     gsDPPipeSync(),
     39     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     40     gsSPSetGeometryMode(G_LIGHTING),
     41     gsSPEndDisplayList(),
     42 };
     43 
     44 // 0x04022070 - 0x040220C8
     45 const Gfx burn_smoke_seg4_dl_04022070[] = {
     46     gsSPDisplayList(burn_smoke_seg4_dl_04022000),
     47     gsDPLoadTextureBlock(burn_smoke_seg4_texture_04021800, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
     48     gsSPDisplayList(burn_smoke_seg4_dl_04022028),
     49     gsSPDisplayList(burn_smoke_seg4_dl_04022048),
     50     gsSPEndDisplayList(),
     51 };