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

40 lines
1.5 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (manta_fin)
****************************************************************************************************/
#define SCALE 0.25
#define ShapeColor_manta_fin(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_fin_0[] = {
{ 97, 0, 52, 0, 412, 534, -1, -1, -1, 255},
{ 135, 0, 0, 0, 432, 770, -1, -1, -1, 255},
{ 274, 0, 0, 0, 1244, 550, -1, -1, -1, 255},
};
static Gfx gfx_manta_fin_0[] = {
gs_Tani_LoadTextureImage2(manta_body_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
gsSPVertex(&vtx_manta_fin_0[0], 3, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSPEndDisplayList()
};
Gfx gfx_manta_fin[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_LIGHTING|G_CULL_BACK),
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_fin_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING|G_CULL_BACK),
gsSPEndDisplayList()
};