sm64/shape/enemy1_j/peach/p_LarmA_shape.sou
2022-12-04 22:27:02 -05:00

109 lines
4.3 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (p_LarmA)
****************************************************************************************************/
#define p_LarmA_AMB_SCALE 0.5
#define ShapeColor_p_LarmA(R,G,B) {{R*p_LarmA_AMB_SCALE ,G*p_LarmA_AMB_SCALE ,B*p_LarmA_AMB_SCALE ,0 ,R*p_LarmA_AMB_SCALE ,G*p_LarmA_AMB_SCALE ,B*p_LarmA_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_p_LarmA[] = {
ShapeColor_p_LarmA(255,255,255),
};
static Vtx vtx_p_LarmA_0[] = {
{ 52, 26, 0, 0, 1068, -1682, 7, 126, 0, 255},
{ 23, 13, 18, 0, 380, -1426, 0, 62, 110, 255},
{ 52, 12, 18, 0, 1050, -1376, 7, 64, 109, 255},
{ 23, 27, 0, 0, 394, -1730, 5, 122, -33, 255},
{ 52, 12, -17, 0, 1046, -1380, 6, 59, -111, 255},
{ 23, -10, 20, 0, 350, -878, -1, -59, 111, 255},
{ 51, -9, 21, 0, 1022, -876, 4, -58, 112, 255},
{ 23, 13, -18, 0, 376, -1430, 5, 44, -118, 255},
{ 51, -9, -19, 0, 1018, -880, 6, -58, -112, 255},
{ 23, -10, -20, 0, 348, -882, 5, -81, -97, 255},
{ 22, -21, 0, 0, 336, -634, 3, -125, 22, 255},
{ 51, -20, 0, 0, 1012, -624, 5, -126, -1, 255},
};
static Vtx vtx_p_LarmA_1[] = {
{ 115, -2, 0, 0, 0, 0, 126, -6, 0, 255},
{ 101, -9, 16, 0, 0, 0, 45, -56, 104, 255},
{ 101, -18, 0, 0, 0, 0, 46, -117, -15, 255},
{ 51, -9, -19, 0, 0, 0, 6, -58, -112, 255},
{ 51, -20, 0, 0, 0, 0, 5, -126, -1, 255},
{ 101, -9, -16, 0, 0, 0, 50, -40, -109, 255},
{ 52, 12, -17, 0, 0, 0, 6, 59, -111, 255},
{ 102, 12, -14, 0, 0, 0, 52, 66, -94, 255},
{ 102, 21, 0, 0, 0, 0, 60, 110, 19, 255},
{ 102, 12, 14, 0, 0, 0, 64, 54, 94, 255},
{ 51, -9, 21, 0, 0, 0, 4, -58, 112, 255},
{ 52, 12, 18, 0, 0, 0, 7, 64, 109, 255},
{ 52, 26, 0, 0, 0, 0, 7, 126, 0, 255},
};
static Gfx gfx_p_LarmA_0[] = {
gs_Tani_LoadTextureImage2(peach_eye_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPLight((&light_p_LarmA[0].l[0]),1 ),
gsSPLight((&light_p_LarmA[0].a ),2 ),
gsSPVertex(&vtx_p_LarmA_0[0], 12, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 3, 1, 0),
gsSP1Triangle( 4, 3, 0, 0),
gsSP1Triangle( 1, 5, 6, 0),
gsSP1Triangle( 6, 2, 1, 0),
gsSP1Triangle( 4, 7, 3, 0),
gsSP1Triangle( 7, 4, 8, 0),
gsSP1Triangle( 8, 9, 7, 0),
gsSP1Triangle( 6,10,11, 0),
gsSP1Triangle(11,10, 9, 0),
gsSP1Triangle(11, 9, 8, 0),
gsSP1Triangle( 6, 5,10, 0),
gsSPEndDisplayList()
};
static Gfx gfx_p_LarmA_1[] = {
gsSPVertex(&vtx_p_LarmA_1[0], 13, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 2, 4, 0),
gsSP1Triangle( 3, 5, 2, 0),
gsSP1Triangle( 2, 5, 0, 0),
gsSP1Triangle( 4, 2, 1, 0),
gsSP1Triangle( 6, 7, 5, 0),
gsSP1Triangle( 7, 0, 5, 0),
gsSP1Triangle( 3, 6, 5, 0),
gsSP1Triangle( 8, 9, 0, 0),
gsSP1Triangle( 1, 0, 9, 0),
gsSP1Triangle( 0, 7, 8, 0),
gsSP1Triangle( 4, 1,10, 0),
gsSP1Triangle( 1, 9,11, 0),
gsSP1Triangle(11,10, 1, 0),
gsSP1Triangle(12, 8, 7, 0),
gsSP1Triangle(12, 7, 6, 0),
gsSP1Triangle(11, 8,12, 0),
gsSP1Triangle(11, 9, 8, 0),
gsSPEndDisplayList()
};
Gfx gfx_p_LarmA[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB_ENVA, G_CC_MODULATERGB_ENVA),
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_p_LarmA_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE_ENVA, G_CC_SHADE_ENVA),
gsSPDisplayList(gfx_p_LarmA_1),
gsDPPipeSync(),
gsSPEndDisplayList()
};