/*************************************************************************************************** Convert from NINGEN (j_glass) ****************************************************************************************************/ #define j_glass_AMB_SCALE 0.5 #define ShapeColor_j_glass(R,G,B) {{R*j_glass_AMB_SCALE ,G*j_glass_AMB_SCALE ,B*j_glass_AMB_SCALE ,0 ,R*j_glass_AMB_SCALE ,G*j_glass_AMB_SCALE ,B*j_glass_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} } static Lights1 light_j_glass[] = { ShapeColor_j_glass(255,255,255), }; static Vtx vtx_j_glass_0[] = { { 150, -30, 0, 0, 992, 994, 126, -11, 9, 255}, { 136, -116, 82, 0, 2012, 0, 126, -11, 9, 255}, { 142, -116, 0, 0, 992, -26, 126, -11, 9, 255}, { 142, -116, 0, 0, 992, -26, 126, -11, -7, 255}, { 145, -30, -81, 0, 0, 990, 126, -11, -7, 255}, { 150, -30, 0, 0, 992, 994, 126, -11, -7, 255}, { 142, -116, 0, 0, 992, -26, 125, -13, -9, 255}, { 136, -116, -81, 0, 0, 0, 125, -13, -9, 255}, { 145, -30, -81, 0, 0, 990, 125, -13, -9, 255}, { 150, -30, 0, 0, 992, 994, 126, -13, 7, 255}, { 145, -30, 82, 0, 2012, 990, 126, -13, 7, 255}, { 136, -116, 82, 0, 2012, 0, 126, -13, 7, 255}, }; static Gfx gfx_j_glass_0[] = { gsSPLight((&light_j_glass[0].l[0]),1 ), gsSPLight((&light_j_glass[0].a ),2 ), gsSPVertex(&vtx_j_glass_0[0], 12, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 3, 4, 5, 0), gsSP1Triangle( 6, 7, 8, 0), gsSP1Triangle( 9,10,11, 0), gsSPEndDisplayList() }; static Gfx gfx_j_glass_init[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA), gsSPClearGeometryMode(G_SHADING_SMOOTH), 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, 64, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD), gsSPEndDisplayList() }; static Gfx gfx_j_glass_reset[] = { gsSPDisplayList(gfx_j_glass_0), gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPEndDisplayList() }; Gfx gfx_j_glass1[] = { gsSPDisplayList(gfx_j_glass_init), gs_Tani_LoadTextureImage2(jyu_eye_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7), gsSPBranchList(gfx_j_glass_reset) }; Gfx gfx_j_glass2[] = { gsSPDisplayList(gfx_j_glass_init), gs_Tani_LoadTextureImage2(jyu_eye2_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7), gsSPBranchList(gfx_j_glass_reset) };