/***************************************************************************************************
		Convert from NINGEN		(manta_Lwing3) 																
****************************************************************************************************/
#define SCALE 0.25
#define ShapeColor_manta_Lwing3(R,G,B) {{R*SCALE ,G*SCALE ,B*SCALE ,0 ,R*SCALE ,G*SCALE ,B*SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }

static Lights1 light_manta_Lwing3[] = {
	ShapeColor_manta_Lwing3(255,255,255),
	ShapeColor_manta_Lwing3(198,238,237),
};

static Vtx vtx_manta_Lwing3_0[] = {
	{    167,   -105,      0,     0,  1220,   280,    19, -125,   -2,  255}, 
	{      0,    -89,     10,     0,  1024,   298,   -47,  -17,  116,  255}, 
	{      0,   -109,      0,     0,  1024,   274,  -103,  -73,   -3,  255}, 
	{      0,    122,      0,     0,  1024,   550,  -126,   12,   -3,  255}, 
	{    180,    -17,      0,     0,  1236,   384,   117,   47,    0,  255}, 
	{     -7,    -77,      0,     0,  1012,   312,  -126,  -12,   -2,  255}, 
};

static Vtx vtx_manta_Lwing3_1[] = {
	{      0,    -89,     -9,     0,     0,     0,   -45,  -15, -117,  255}, 
	{    180,    -17,      0,     0,     0,     0,   117,   47,    0,  255}, 
	{    167,   -105,      0,     0,     0,     0,    19, -125,   -2,  255}, 
	{      0,   -109,      0,     0,     0,     0,  -103,  -73,   -3,  255}, 
	{     -7,    -77,      0,     0,     0,     0,  -126,  -12,   -2,  255}, 
	{      0,    122,      0,     0,     0,     0,  -126,   12,   -3,  255}, 
};

static Gfx gfx_manta_Lwing3_0[] = {
	gs_Tani_LoadTextureImage2(manta_body_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),

	gsSPLight((&light_manta_Lwing3[0].l[0]),1 ),
	gsSPLight((&light_manta_Lwing3[0].a   ),2 ),

	gsSPVertex(&vtx_manta_Lwing3_0[0],  6, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 3, 1, 4, 0),
	gsSP1Triangle( 4, 1, 0, 0),
	gsSP1Triangle( 1, 3, 5, 0),
	gsSP1Triangle( 5, 2, 1, 0),
	gsSPEndDisplayList() 
};

static Gfx gfx_manta_Lwing3_1[] = {

	gsSPLight((&light_manta_Lwing3[1].l[0]),1 ),
	gsSPLight((&light_manta_Lwing3[1].a   ),2 ),

	gsSPVertex(&vtx_manta_Lwing3_1[0],  6, 0), 
	gsSP1Triangle( 0, 1, 2, 0),
	gsSP1Triangle( 0, 3, 4, 0),
	gsSP1Triangle( 3, 0, 2, 0),
	gsSP1Triangle( 4, 5, 0, 0),
	gsSP1Triangle( 5, 1, 0, 0),
	gsSPEndDisplayList() 
};

Gfx gfx_manta_Lwing3[] = {
	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, 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_manta_Lwing3_0),

	gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),

	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),

		gsSPDisplayList(gfx_manta_Lwing3_1),

	gsSPEndDisplayList() 
};

