/*************************************************************************************************** Convert from NINGEN (book_pagesB) ****************************************************************************************************/ #define book_pagesB_AMB_SCALE 0.4 #define ShapeColor_book_pagesB(R,G,B) {{R*book_pagesB_AMB_SCALE ,G*book_pagesB_AMB_SCALE ,B*book_pagesB_AMB_SCALE ,0 ,R*book_pagesB_AMB_SCALE ,G*book_pagesB_AMB_SCALE ,B*book_pagesB_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} } static Lights1 light_book_pagesB[] = { ShapeColor_book_pagesB(255,255,255), }; static Vtx vtx_book_pagesB_0[] = { { -10, 0, 105, 0, 0, 0, 0, 127, 0, 255}, { 159, 0, -102, 0, 479, 990, 0, 127, 0, 255}, { -10, 0, -102, 0, 0, 990, 0, 127, 0, 255}, { 159, 0, 105, 0, 479, 0, 0, 127, 0, 255}, }; static Vtx vtx_book_pagesB_1[] = { { 170, -38, -102, 0, 479, 990, 0, 0, -127, 255}, { -4, -38, -102, 0, 479, 0, 0, 0, -127, 255}, { -10, 0, -102, 0, 0, -6, 0, 0, -127, 255}, { 159, 0, -102, 0, 0, 990, 0, 0, -127, 255}, { 170, -38, 105, 0, 479, 990, 121, 35, 0, 255}, { 170, -38, -102, 0, 479, 0, 121, 35, 0, 255}, { 159, 0, -102, 0, 0, 0, 121, 35, 0, 255}, { 159, 0, 105, 0, 0, 990, 121, 35, 0, 255}, { -4, -38, 105, 0, 479, 990, 0, 0, 127, 255}, { 170, -38, 105, 0, 479, 0, 0, 0, 127, 255}, { 159, 0, 105, 0, 0, -6, 0, 0, 127, 255}, { -10, 0, 105, 0, 0, 990, 0, 0, 127, 255}, }; static Gfx gfx_book_pagesB_0[] = { gs_Tani_LoadTextureImage2(book_pageA_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7), gsSPLight((&light_book_pagesB[0].l[0]),1 ), gsSPLight((&light_book_pagesB[0].a ),2 ), gsSPVertex(&vtx_book_pagesB_0[0], 4, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 0, 3, 1, 0), gsSPEndDisplayList() }; static Gfx gfx_book_pagesB_1[] = { gs_Tani_LoadTextureImage2(book_pageB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7), gsSPVertex(&vtx_book_pagesB_1[0], 12, 0), gsSP1Triangle( 0, 1, 2, 0), gsSP1Triangle( 0, 2, 3, 0), gsSP1Triangle( 4, 5, 6, 0), gsSP1Triangle( 4, 6, 7, 0), gsSP1Triangle( 8, 9,10, 0), gsSP1Triangle( 8,10,11, 0), gsSPEndDisplayList() }; Gfx gfx_book_pagesB[] = { gsDPPipeSync(), gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), 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, 16, 32, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD), gsSPDisplayList(gfx_book_pagesB_0), gsSPDisplayList(gfx_book_pagesB_1), gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF), gsDPPipeSync(), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPEndDisplayList() };