/*************************************************************************************************** Convert from NINGEN (cube3) ****************************************************************************************************/ #define CUBE3_AMB_SCALE 0.5 #define ShapeColor_cube3(R,G,B) {{R*CUBE3_AMB_SCALE ,G*CUBE3_AMB_SCALE ,B*CUBE3_AMB_SCALE ,0 ,R*CUBE3_AMB_SCALE ,G*CUBE3_AMB_SCALE ,B*CUBE3_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} } static Lights1 light_cubex3[] = { ShapeColor_cube3(255,255,255), }; static Vtx vtx_cube3_0[] = { { 49, 16, 14, 0, 612, -26, 80, 87, 43, 255}, { 49, -15, -13, 0, 1114, -26, 80, -87, -43, 255}, { 49, 16, -13, 0, 370, -16, 43, 53, -106, 255}, { -2, 13, -10, 0, 372, 996, -88, 81, -40, 255}, { 49, -15, -13, 0, 92, -26, 80, -87, -43, 255}, { -2, -12, -10, 0, 80, 990, -59, -50, -100, 255}, { -2, 13, 12, 0, 622, 990, -57, 50, 101, 255}, { -2, -12, -10, 0, 1102, 990, -59, -50, -100, 255}, { -2, -12, 12, 0, 884, 980, -88, -81, 40, 255}, { 49, -15, 14, 0, 886, -36, 45, -52, 105, 255}, }; static Gfx gfx_cube3_0[] = { gs_Tani_LoadTextureImage2(monky_skinB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7), gsSPLight((&light_cubex3[0].l[0]),1 ), gsSPLight((&light_cubex3[0].a ),2 ), gsSPVertex(&vtx_cube3_0[0], 10, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 0, 2, 3, 0), gsSP1Triangle( 2, 4, 5, 0), gsSP1Triangle( 2, 5, 3, 0), gsSP1Triangle( 0, 3, 6, 0), gsSP1Triangle( 3, 7, 8, 0), gsSP1Triangle( 3, 8, 6, 0), gsSP1Triangle( 0, 9, 1, 0), gsSP1Triangle( 1, 9, 8, 0), gsSP1Triangle( 1, 8, 7, 0), gsSP1Triangle( 9, 0, 6, 0), gsSP1Triangle( 9, 6, 8, 0), gsSPEndDisplayList() }; Gfx gfx_cube3[] = { 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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD), gsSPDisplayList(gfx_cube3_0), gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPEndDisplayList() };