sm64/shape/enemy2_h/mucho/mu_mouthB_shape.sou
2022-12-04 22:27:02 -05:00

66 lines
2.6 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (mu_mouthB)
****************************************************************************************************/
#define mu_mouthB_AMB_SCALE 0.4
#define ShapeColor_mu_mouthB(R,G,B) {{R*mu_mouthB_AMB_SCALE ,G*mu_mouthB_AMB_SCALE ,B*mu_mouthB_AMB_SCALE ,0 ,R*mu_mouthB_AMB_SCALE ,G*mu_mouthB_AMB_SCALE ,B*mu_mouthB_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_mu_mouthB[] = {
ShapeColor_mu_mouthB(255,255,255),
};
static Vtx vtx_mu_mouthB_0[] = {
{ -23, 7, 119, 0, -47, 152, -83, 95, 0, 255},
{ -46, -33, 118, 0, -42, 360, -124, -22, 0, 255},
{ -46, -33, 174, 0, 392, 364, -124, 24, 0, 255},
{ -23, -74, 118, 0, -36, 570, -41, -119, 0, 255},
{ -23, -74, 174, 0, 397, 574, -83, -95, 0, 255},
{ 24, -74, 118, 0, -36, 570, 83, -95, 0, 255},
{ 24, -74, 174, 0, 397, 574, 41, -119, 0, 255},
{ -23, 7, 175, 0, 386, 156, -41, 119, 0, 255},
{ 47, -33, 118, 0, -42, 360, 124, 24, 0, 255},
{ 47, -33, 174, 0, 392, 364, 124, -22, 0, 255},
{ 24, 7, 119, 0, -47, 152, 41, 119, 0, 255},
{ 24, 7, 175, 0, 386, 156, 83, 95, 0, 255},
};
static Gfx gfx_mu_mouthB_0[] = {
gs_Tani_LoadTextureImage2(mucho_mouthA_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7),
gsSPLight((&light_mu_mouthB[0].l[0]),1 ),
gsSPLight((&light_mu_mouthB[0].a ),2 ),
gsSPVertex(&vtx_mu_mouthB_0[0], 12, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 1, 4, 2, 0),
gsSP1Triangle( 3, 5, 6, 0),
gsSP1Triangle( 3, 6, 4, 0),
gsSP1Triangle( 0, 2, 7, 0),
gsSP1Triangle( 5, 8, 9, 0),
gsSP1Triangle( 8,10,11, 0),
gsSP1Triangle( 8,11, 9, 0),
gsSP1Triangle(10, 0, 7, 0),
gsSP1Triangle(10, 7,11, 0),
gsSP1Triangle( 5, 9, 6, 0),
gsSPEndDisplayList()
};
Gfx gfx_mu_mouthB[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
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, 16, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_mu_mouthB_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList()
};