sm64/shape/enemy1_d/manta/manta_Rwing2_shape.sou
2022-12-04 22:27:02 -05:00

79 lines
3.1 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (manta_Rwing2)
****************************************************************************************************/
#define SCALE 0.25
#define ShapeColor_manta_Rwing2(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 Vtx vtx_manta_Rwing2_0[] = {
{ 180, -119, 0, 0, 1016, 538, -1, -1, -1, 255},
{ 180, 92, 10, 0, 1016, 286, -1, -1, -1, 255},
{ 0, 90, 20, 0, 804, 290, -1, -1, -1, 255},
{ -31, 64, 0, 0, 764, 320, -1, -1, -1, 255},
{ 0, -227, 0, 0, 804, 668, -1, -1, -1, 255},
{ 0, 124, 0, 0, 804, 248, -1, -1, -1, 255},
{ 180, 112, 0, 0, 1016, 264, -1, -1, -1, 255},
{ 186, 80, 0, 0, 1024, 302, -1, -1, -1, 255},
};
static Vtx vtx_manta_Rwing2_1[] = {
{ 180, 92, -9, 0, 0, 0, -58, -18, -19, 255},
{ 180, -119, 0, 0, 0, 0, -58, -18, -19, 255},
{ 0, 90, -19, 0, 0, 0, -58, -18, -19, 255},
{ 186, 80, 0, 0, 0, 0, -58, -18, -19, 255},
{ 180, 112, 0, 0, 0, 0, -58, -18, -19, 255},
{ 0, -227, 0, 0, 0, 0, -58, -18, -19, 255},
{ 0, 124, 0, 0, 0, 0, -58, -18, -19, 255},
{ -31, 64, 0, 0, 0, 0, -58, -18, -19, 255},
};
static Gfx gfx_manta_Rwing2_0[] = {
gs_Tani_LoadTextureImage2(manta_body_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
gsSPVertex(&vtx_manta_Rwing2_0[0], 8, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 2, 0),
gsSP1Triangle( 2, 5, 3, 0),
gsSP1Triangle( 5, 2, 1, 0),
gsSP1Triangle( 4, 0, 2, 0),
gsSP1Triangle( 5, 1, 6, 0),
gsSP1Triangle( 7, 6, 1, 0),
gsSP1Triangle( 0, 7, 1, 0),
gsSPEndDisplayList()
};
static Gfx gfx_manta_Rwing2_1[] = {
gsSPVertex(&vtx_manta_Rwing2_1[0], 8, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 1, 0, 3, 0),
gsSP1Triangle( 0, 4, 3, 0),
gsSP1Triangle( 4, 0, 2, 0),
gsSP1Triangle( 2, 1, 5, 0),
gsSP1Triangle( 4, 2, 6, 0),
gsSP1Triangle( 2, 5, 7, 0),
gsSP1Triangle( 7, 6, 2, 0),
gsSPEndDisplayList()
};
Gfx gfx_manta_Rwing2[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_LIGHTING),
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_Rwing2_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(gfx_manta_Rwing2_1),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList()
};