sm64/shape/enemy2_h/nessy/nes_Lfoot_shape.sou
2022-12-04 22:27:02 -05:00

73 lines
2.7 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (nes_Lfoot)
****************************************************************************************************/
#define nes_Lfoot_AMB_SCALE 0.5
#define ShapeColor_nes_Lfoot(R,G,B) {{R*nes_Lfoot_AMB_SCALE ,G*nes_Lfoot_AMB_SCALE ,B*nes_Lfoot_AMB_SCALE ,0 ,R*nes_Lfoot_AMB_SCALE ,G*nes_Lfoot_AMB_SCALE ,B*nes_Lfoot_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_nes_Lfoot[] = {
ShapeColor_nes_Lfoot(255,255,255),
};
static Vtx vtx_nes_Lfoot_0[] = {
{ 864, 32, -681, 0, 572, 1464, -40, -62, -103, 255},
{ -63, -44, 97, 0, 786, 1880, -87, -22, 89, 255},
{ -60, 106, -81, 0, 782, 1756, -51, 115, -2, 255},
{ 978, -62, 236, 0, 578, 2152, 27, -54, 111, 255},
{ 981, 88, 57, 0, 574, 2028, 11, 117, 46, 255},
{ 1864, -30, -331, 0, 378, 1888, 86, 38, 85, 255},
{ 1865, 35, -511, 0, 374, 1760, 24, 123, 15, 255},
{ 2079, 13, -780, 0, 320, 1596, 59, 110, 16, 255},
};
static Gfx gfx_nes_Lfoot_0[] = {
gs_Tani_LoadTextureImage2(nes_skinC_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
gsSPLight((&light_nes_Lfoot[0].l[0]),1 ),
gsSPLight((&light_nes_Lfoot[0].a ),2 ),
gsSPVertex(&vtx_nes_Lfoot_0[0], 8, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 1, 0, 0),
gsSP1Triangle( 4, 2, 1, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 4, 3, 5, 0),
gsSP1Triangle( 0, 5, 3, 0),
gsSP1Triangle( 5, 6, 4, 0),
gsSP1Triangle( 0, 2, 4, 0),
gsSP1Triangle( 4, 6, 0, 0),
gsSP1Triangle( 5, 7, 6, 0),
gsSP1Triangle( 0, 7, 5, 0),
gsSP1Triangle( 6, 7, 0, 0),
gsSPEndDisplayList()
};
Gfx gfx_nes_Lfoot[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_2CYCLE),
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_OPA_SURF2),
gsDPSetDepthSource(G_ZS_PIXEL),
gsDPSetFogColor(STAGE7_NESSY_FOG_R, STAGE7_NESSY_FOG_G, STAGE7_NESSY_FOG_B, 255),
gsSPFogPosition(STAGE7_NESSY_FOG_START, 1000),
gsSPSetGeometryMode(G_FOG),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_PASS2),
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, 64, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 6, G_TX_NOLOD),
gsSPDisplayList(gfx_nes_Lfoot_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF),
gsSPClearGeometryMode(G_FOG),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList()
};