/***************************************************************************************************
		Convert from NINGEN		(omu_body) 																
****************************************************************************************************/
#define omu_body_AMB_SCALE 0.5
#define ShapeColor_omu_body(R,G,B) {{R*omu_body_AMB_SCALE ,G*omu_body_AMB_SCALE ,B*omu_body_AMB_SCALE ,0 ,R*omu_body_AMB_SCALE ,G*omu_body_AMB_SCALE ,B*omu_body_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }

static Lights1 light_omu_body[] = {
	ShapeColor_omu_body(255,255,255),
	ShapeColor_omu_body(129,  1, 26),
};

static Vtx vtx_omu_body_0[] = {
	{    -23,    108,    -47,     0,    96,  -150,   -44,  112,  -38,  255}, 
	{   -107,    -11,    -95,     0,  -286,  1018,   -90,  -67,  -58,  255}, 
	{   -107,    -11,     96,     0,  1246,  1018,  -112,   40,   43,  255}, 
	{    -23,    108,     48,     0,   862,  -150,   -39,  106,   57,  255}, 
};

static Vtx vtx_omu_body_1[] = {
	{    -23,    108,    -47,     0,   862,  -822,   -44,  112,  -38,  255}, 
	{    -23,    108,     48,     0,    96,  -822,   -39,  106,   57,  255}, 
	{    132,     86,     72,     0,   -94,   236,    48,  110,   39,  255}, 
	{    132,     86,    -71,     0,  1054,   236,    43,  103,  -60,  255}, 
	{    233,     -9,     72,     0,   -94,  1170,    81,  -70,   67,  255}, 
	{    233,     -9,    -71,     0,  1054,  1170,   104,   49,  -52,  255}, 
};

static Vtx vtx_omu_body_2[] = {
	{    132,     86,    -71,     0,  1736,  -108,    43,  103,  -60,  255}, 
	{     24,    -11,   -155,     0,    36,  1382,     0,  -65, -109,  255}, 
	{    -23,    108,    -47,     0,  -452,  -292,   -44,  112,  -38,  255}, 
	{    233,     -9,    -71,     0,  3024,  1182,   104,   49,  -52,  255}, 
	{   -107,    -11,    -95,     0, -1844,  1486,   -90,  -67,  -58,  255}, 
	{    -23,    108,     48,     0,  -452,  -292,   -39,  106,   57,  255}, 
	{     24,    -11,    156,     0,    36,  1382,     0,  -65,  109,  255}, 
	{    132,     86,     72,     0,  1736,  -108,    48,  110,   39,  255}, 
	{   -107,    -11,     96,     0, -1844,  1486,  -112,   40,   43,  255}, 
	{    233,     -9,     72,     0,  3024,  1182,    81,  -70,   67,  255}, 
};

static Vtx vtx_omu_body_3[] = {
	{   -107,    -11,    -95,     0,     0,     0,   -90,  -67,  -58,  255}, 
	{     24,    -11,    156,     0,     0,     0,     0,  -65,  109,  255}, 
	{   -107,    -11,     96,     0,     0,     0,  -112,   40,   43,  255}, 
	{     24,    -11,   -155,     0,     0,     0,     0,  -65, -109,  255}, 
	{    233,     -9,    -71,     0,     0,     0,   104,   49,  -52,  255}, 
	{    233,     -9,     72,     0,     0,     0,    81,  -70,   67,  255}, 
};

static Gfx gfx_omu_body_0[] = {
	gs_Tani_LoadTextureImage2(ganmen_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),

	gsSPLight((&light_omu_body[0].l[0]),1 ),
	gsSPLight((&light_omu_body[0].a   ),2 ),

	gsSPVertex(&vtx_omu_body_0[0],  4, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 0, 2, 3, 0),
	gsSPEndDisplayList() 
};

static Gfx gfx_omu_body_1[] = {
	gs_Tani_LoadTextureImage2(rot_dai_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
	gsSPVertex(&vtx_omu_body_1[0],  6, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 0, 2, 3, 0),
	gsSP1Triangle( 2, 4, 5, 0),
	gsSP1Triangle( 2, 5, 3, 0),
	gsSPEndDisplayList() 
};

static Gfx gfx_omu_body_2[] = {
	gs_Tani_LoadTextureImage2(kuppaseal_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
	gsSPVertex(&vtx_omu_body_2[0], 10, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 0, 3, 1, 0),
	gsSP1Triangle( 2, 1, 4, 0),
	gsSP1Triangle( 5, 6, 7, 0),
	gsSP1Triangle( 8, 6, 5, 0),
	gsSP1Triangle( 6, 9, 7, 0),
	gsSPEndDisplayList() 
};

static Gfx gfx_omu_body_3[] = {

	gsSPLight((&light_omu_body[1].l[0]),1 ),
	gsSPLight((&light_omu_body[1].a   ),2 ),

	gsSPVertex(&vtx_omu_body_3[0],  6, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 0, 3, 1, 0),
	gsSP1Triangle( 3, 4, 5, 0),
	gsSP1Triangle( 3, 5, 1, 0),
	gsSPEndDisplayList() 
};

Gfx gfx_omu_body[] = {
	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_body_0),
		gsSPDisplayList(gfx_omu_body_1),

	gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32,  0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),

		gsSPDisplayList(gfx_omu_body_2),

	gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),

	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),

		gsSPDisplayList(gfx_omu_body_3),

	gsSPEndDisplayList() 
};

