103 lines
4.3 KiB
Plaintext
103 lines
4.3 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (ichi_body)
|
|
****************************************************************************************************/
|
|
#define ichi_body_AMB_SCALE 0.3
|
|
#define ShapeColor_ichi_body(R,G,B) {{R*ichi_body_AMB_SCALE ,G*ichi_body_AMB_SCALE ,B*ichi_body_AMB_SCALE ,0 ,R*ichi_body_AMB_SCALE ,G*ichi_body_AMB_SCALE ,B*ichi_body_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_ichi_body[] = {
|
|
ShapeColor_ichi_body(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_ichi_body_0[] = {
|
|
{ -52, 610, -201, 0, 470, 990, 0, 126, 0, 255},
|
|
{ -52, 610, 202, 0, 0, 2012, 0, 126, 0, 255},
|
|
{ 1559, 600, 202, 0, 0, -1022, 0, 126, 0, 255},
|
|
{ 1559, 600, -201, 0, 0, 320, 126, 0, 0, 255},
|
|
{ 1551, -609, 202, 0, 1980, 990, 126, 0, 0, 255},
|
|
{ 1551, -609, -201, 0, 1980, 320, 126, 0, 0, 255},
|
|
{ 1559, 600, 202, 0, 0, 990, 126, 0, 0, 255},
|
|
{ -60, -598, -201, 0, 1962, 320, -126, 0, 0, 255},
|
|
{ -52, 610, 202, 0, -48, 990, -126, 0, 0, 255},
|
|
{ -52, 610, -201, 0, -48, 320, -126, 0, 0, 255},
|
|
{ -60, -598, 202, 0, 1962, 990, -126, 0, 0, 255},
|
|
{ -60, -598, 202, 0, 0, 990, 0, -126, 0, 255},
|
|
{ -60, -598, -201, 0, 470, 990, 0, -126, 0, 255},
|
|
{ 1551, -609, -201, 0, 470, -1022, 0, -126, 0, 255},
|
|
{ 1551, -609, 202, 0, 0, -1022, 0, -126, 0, 255},
|
|
{ 1559, 600, -201, 0, 470, -1022, 0, 126, 0, 255},
|
|
};
|
|
|
|
static Vtx vtx_ichi_body_1[] = {
|
|
{ -60, -598, -201, 0, 0, 2012, 0, 0, -127, 255},
|
|
{ 1559, 600, -201, 0, 990, 0, 0, 0, -127, 255},
|
|
{ 1551, -609, -201, 0, 0, 0, 0, 0, -127, 255},
|
|
{ -52, 610, -201, 0, 990, 2012, 0, 0, -127, 255},
|
|
};
|
|
|
|
static Vtx vtx_ichi_body_2[] = {
|
|
{ -52, 610, 202, 0, 0, 2012, 0, 0, 127, 255},
|
|
{ -60, -598, 202, 0, 990, 2012, 0, 0, 127, 255},
|
|
{ 1551, -609, 202, 0, 990, 0, 0, 0, 127, 255},
|
|
{ 1559, 600, 202, 0, 0, 0, 0, 0, 127, 255},
|
|
};
|
|
|
|
static Gfx gfx_ichi_body_0[] = {
|
|
gs_Tani_LoadTextureImage2(ichiro_skin_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_ichi_body[0].l[0]),1 ),
|
|
gsSPLight((&light_ichi_body[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_ichi_body_0[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 3, 6, 4, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle( 7,10, 8, 0),
|
|
gsSP1Triangle(11,12,13, 0),
|
|
gsSP1Triangle(11,13,14, 0),
|
|
gsSP1Triangle( 0, 2,15, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_ichi_body_1[] = {
|
|
gs_Tani_LoadTextureImage2(ichiro_back_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
|
|
gsSPVertex(&vtx_ichi_body_1[0], 4, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 3, 1, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_ichi_body_2[] = {
|
|
gs_Tani_LoadTextureImage2(ichiro_face_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
|
|
gsSPVertex(&vtx_ichi_body_2[0], 4, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_ichi_body[] = {
|
|
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, 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_ichi_body_0),
|
|
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 6, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_ichi_body_1),
|
|
gsSPDisplayList(gfx_ichi_body_2),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|