sm64/shape/enemy2_e/goal_flag/face7_shape.sou
2022-12-04 22:27:02 -05:00

55 lines
1.9 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (face7)
****************************************************************************************************/
static Vtx vtx_face7_0[] = {
{ 0, 0, 0, 0, -226, 510, -1, -1, -1, 255},
{ 460, 0, 540, 0, 224, 1318, -1, -1, -1, 255},
{ 460, 0, -539, 0, 224, -302, -1, -1, -1, 255},
};
static Vtx vtx_face7_1[] = {
{ 0, 0, 720, 0, 0, 0, -3, -88, 2, 255},
{ 460, 0, 540, 0, 0, 0, -3, -88, 2, 255},
{ 0, 0, 0, 0, 0, 0, -3, -88, 2, 255},
{ 460, 0, -539, 0, 0, 0, -3, -88, 2, 255},
{ 0, 0, -719, 0, 0, 0, -3, -88, 2, 255},
};
static Gfx gfx_face7_0[] = {
gs_Tani_LoadTextureImage2(mark_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPVertex(&vtx_face7_0[0], 3, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSPEndDisplayList()
};
static Gfx gfx_face7_1[] = {
gsSPVertex(&vtx_face7_1[0], 5, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 2, 0),
gsSPEndDisplayList()
};
Gfx gfx_face7[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
gsSPClearGeometryMode(G_LIGHTING|G_CULL_BACK),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, 7, 0, 0,0,0, 0,0,0),
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_face7_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(gfx_face7_1),
gsSPSetGeometryMode(G_LIGHTING|G_CULL_BACK),
gsSPEndDisplayList()
};