sm64pc/actors/mist/model.inc.c

55 lines
2.3 KiB
C
Raw Normal View History

2019-11-03 20:36:27 +01:00
// Mist
// 0x03000000
static const Vtx mist_seg3_vertex_03000000[] = {
{{{ -25, -25, 0}, 0, { 0, 992}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 25, -25, 0}, 0, { 992, 992}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 25, 25, 0}, 0, { 992, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -25, 25, 0}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x03000040
static const Vtx mist_seg3_vertex_03000040[] = {
{{{ -25, -25, 0}, 0, { 0, 992}, {0x22, 0x1a, 0x1c, 0xff}}},
{{{ 25, -25, 0}, 0, { 992, 992}, {0x22, 0x1a, 0x1c, 0xff}}},
{{{ 25, 25, 0}, 0, { 992, 0}, {0x22, 0x1a, 0x1c, 0xff}}},
{{{ -25, 25, 0}, 0, { 0, 0}, {0x22, 0x1a, 0x1c, 0xff}}},
};
// 0x03000080
ALIGNED8 static const u8 mist_seg3_texture_03000080[] = "actors/mist/mist.ia16";
2019-11-03 20:36:27 +01:00
// 0x03000880 - 0x03000920
const Gfx mist_seg3_dl_03000880[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING),
2019-12-02 03:52:53 +01:00
gsDPSetCombineMode(G_CC_MODULATEIFADEA, G_CC_MODULATEIFADEA),
2019-11-03 20:36:27 +01:00
gsDPLoadTextureBlock(mist_seg3_texture_03000080, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsSPVertex(mist_seg3_vertex_03000000, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsDPSetEnvColor(255, 255, 255, 255),
gsSPEndDisplayList(),
};
// 0x03000920 - 0x030009C0
const Gfx mist_seg3_dl_03000920[] = {
gsDPPipeSync(),
gsSPClearGeometryMode(G_LIGHTING),
2019-12-02 03:52:53 +01:00
gsDPSetCombineMode(G_CC_MODULATEIFADEA, G_CC_MODULATEIFADEA),
2019-11-03 20:36:27 +01:00
gsDPLoadTextureBlock(mist_seg3_texture_03000080, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsSPVertex(mist_seg3_vertex_03000040, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsDPSetEnvColor(255, 255, 255, 255),
gsSPEndDisplayList(),
};