/*************************************************************************************************** Convert from NINGEN (pira_body) ****************************************************************************************************/ #define pira_body_AMB_SCALE 0.5 #define ShapeColor_pira_body(R,G,B) {{R*pira_body_AMB_SCALE ,G*pira_body_AMB_SCALE ,B*pira_body_AMB_SCALE ,0 ,R*pira_body_AMB_SCALE ,G*pira_body_AMB_SCALE ,B*pira_body_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} } static Lights1 light_pira_body[] = { ShapeColor_pira_body(255,255,255), }; static Vtx vtx_pira_body_0[] = { { -95, 32, 0, 0, 32, 436, -87, 91, -1, 255}, { -39, 20, 28, 0, 184, 480, -12, 10, 125, 255}, { 32, 112, 0, 0, 376, 144, -30, 123, -1, 255}, { -39, 20, -27, 0, 184, 478, -11, 9, -126, 255}, { -115, 0, 0, 0, -22, 552, -107, -67, 0, 255}, { 28, -79, 8, 0, 366, 844, -41, -71, 96, 255}, { 161, 14, 0, 0, 724, 500, 105, 70, 0, 255}, { 161, -13, 0, 0, 724, 604, 105, -70, 0, 255}, { 28, -79, -7, 0, 366, 844, -41, -70, -96, 255}, { 56, -111, 0, 0, 442, 960, -62, -110, 0, 255}, }; static Gfx gfx_pira_body_0[] = { gs_Tani_LoadTextureImage2(pirania_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7), gsSPLight((&light_pira_body[0].l[0]),1 ), gsSPLight((&light_pira_body[0].a ),2 ), gsSPVertex(&vtx_pira_body_0[0], 10, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 0, 2, 0), gsSP1Triangle( 0, 4, 1, 0), gsSP1Triangle( 4, 0, 3, 0), gsSP1Triangle( 4, 5, 1, 0), gsSP1Triangle( 1, 6, 2, 0), gsSP1Triangle( 1, 5, 7, 0), gsSP1Triangle( 1, 7, 6, 0), gsSP1Triangle( 6, 3, 2, 0), gsSP1Triangle( 4, 3, 8, 0), gsSP1Triangle( 7, 8, 3, 0), gsSP1Triangle( 6, 7, 3, 0), gsSP1Triangle( 5, 9, 7, 0), gsSP1Triangle( 7, 9, 8, 0), gsSP1Triangle( 4, 8, 5, 0), gsSP1Triangle( 5, 8, 9, 0), gsSPEndDisplayList() }; Gfx gfx_pira_body[] = { 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, 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_pira_body_0), gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList() };