86 lines
3.3 KiB
Plaintext
86 lines
3.3 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (omu_Rarm)
|
|
****************************************************************************************************/
|
|
#define omu_Rarm_AMB_SCALE 0.5
|
|
#define ShapeColor_omu_Rarm(R,G,B) {{R*omu_Rarm_AMB_SCALE ,G*omu_Rarm_AMB_SCALE ,B*omu_Rarm_AMB_SCALE ,0 ,R*omu_Rarm_AMB_SCALE ,G*omu_Rarm_AMB_SCALE ,B*omu_Rarm_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_omu_Rarm[] = {
|
|
ShapeColor_omu_Rarm(255,255,255),
|
|
ShapeColor_omu_Rarm(153, 0, 45),
|
|
};
|
|
|
|
static Vtx vtx_omu_Rarm_0[] = {
|
|
{ -28, -33, -205, 0, 990, -368, -37, -116, -33, 255},
|
|
{ -37, 20, -205, 0, 990, 1372, -76, 95, 33, 255},
|
|
{ -1, -2, -244, 0, -604, 434, -42, -8, -119, 255},
|
|
{ 228, 3, -205, 0, 764, 338, 111, -59, 14, 255},
|
|
{ 218, 73, -203, 0, 774, 552, 48, 117, 4, 255},
|
|
{ -37, 20, -205, 0, 198, 552, -76, 95, 33, 255},
|
|
{ -28, -33, -205, 0, 194, 386, -37, -116, -33, 255},
|
|
{ 228, 3, -205, 0, -98, -190, 111, -59, 14, 255},
|
|
{ 174, 9, -249, 0, 1060, 34, 30, -64, -105, 255},
|
|
{ 166, 53, -249, 0, 1112, 914, 25, 61, -108, 255},
|
|
{ 218, 73, -203, 0, -98, 1190, 48, 117, 4, 255},
|
|
};
|
|
|
|
static Vtx vtx_omu_Rarm_1[] = {
|
|
{ -37, 20, -205, 0, 0, 0, -76, 95, 33, 255},
|
|
{ 218, 73, -203, 0, 0, 0, 48, 117, 4, 255},
|
|
{ 166, 53, -249, 0, 0, 0, 25, 61, -108, 255},
|
|
{ -28, -33, -205, 0, 0, 0, -37, -116, -33, 255},
|
|
{ 174, 9, -249, 0, 0, 0, 30, -64, -105, 255},
|
|
{ 228, 3, -205, 0, 0, 0, 111, -59, 14, 255},
|
|
{ -1, -2, -244, 0, 0, 0, -42, -8, -119, 255},
|
|
};
|
|
|
|
static Gfx gfx_omu_Rarm_0[] = {
|
|
gs_Tani_LoadTextureImage2(rot_dai_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_omu_Rarm[0].l[0]),1 ),
|
|
gsSPLight((&light_omu_Rarm[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_omu_Rarm_0[0], 11, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 5, 6, 3, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle( 9,10, 7, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_omu_Rarm_1[] = {
|
|
|
|
gsSPLight((&light_omu_Rarm[1].l[0]),1 ),
|
|
gsSPLight((&light_omu_Rarm[1].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_omu_Rarm_1[0], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 2, 4, 0),
|
|
gsSP1Triangle( 4, 3, 6, 0),
|
|
gsSP1Triangle( 2, 6, 0, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_omu_Rarm[] = {
|
|
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_omu_Rarm_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
|
|
gsSPDisplayList(gfx_omu_Rarm_1),
|
|
|
|
gsSPEndDisplayList()
|
|
};
|
|
|