sm64/shape/enemy1_e/handman/fingA_3_shape.sou
2022-12-04 22:27:02 -05:00

83 lines
3.7 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (fingA_3)
****************************************************************************************************/
#define fingA_3_AMB_SCALE 0.5
#define ShapeColor_fingA_3(R,G,B) {{R*fingA_3_AMB_SCALE ,G*fingA_3_AMB_SCALE ,B*fingA_3_AMB_SCALE ,0 ,R*fingA_3_AMB_SCALE ,G*fingA_3_AMB_SCALE ,B*fingA_3_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_fingA_3[] = {
ShapeColor_fingA_3(255,255,255),
};
static Vtx vtx_fingA_3_0[] = {
{ -200, 200, -100, 0, -1020, -512, -127, 0, 0, 255},
{ -200, -202, -100, 0, 990, -512, -127, 0, 0, 255},
{ -200, 200, 200, 0, -1020, 990, -127, 0, 0, 255},
{ -200, -202, -100, 0, 5728, 990, 0, 0, -127, 255},
{ -200, 200, -100, 0, 5728, -1022, 0, 0, -127, 255},
{ 202, -202, -100, 0, 3716, 990, 0, 0, -127, 255},
{ 202, 200, -100, 0, 3716, -1022, 0, 0, -127, 255},
{ 202, -202, 200, 0, 3716, 990, 0, 0, 127, 255},
{ 202, 200, 200, 0, 3716, -1022, 0, 0, 127, 255},
{ -200, -202, 200, 0, 5728, 990, 0, 0, 127, 255},
{ -200, 200, 200, 0, 5728, -1022, 0, 0, 127, 255},
{ -200, -202, -100, 0, 5728, -512, 0, -127, 0, 255},
{ 202, -202, -100, 0, 3716, -512, 0, -127, 0, 255},
{ -200, -202, 200, 0, 5728, 990, 0, -127, 0, 255},
{ 202, -202, 200, 0, 3716, 990, 0, -127, 0, 255},
{ 202, 200, -100, 0, 0, -512, 127, 0, 0, 255},
{ 202, 200, 200, 0, 0, 990, 127, 0, 0, 255},
{ 202, -202, 200, 0, 1980, 990, 127, 0, 0, 255},
{ -200, -202, -100, 0, 990, -512, -127, 0, 0, 255},
{ -200, -202, 200, 0, 990, 990, -127, 0, 0, 255},
{ -200, 200, 200, 0, -1020, 990, -127, 0, 0, 255},
{ 202, 200, -100, 0, 3716, -512, 0, 127, 0, 255},
{ -200, 200, -100, 0, 5728, -512, 0, 127, 0, 255},
{ 202, 200, 200, 0, 3716, 990, 0, 127, 0, 255},
{ -200, 200, 200, 0, 5728, 990, 0, 127, 0, 255},
{ 202, -202, -100, 0, 1980, -512, 127, 0, 0, 255},
};
static Gfx gfx_fingA_3_0[] = {
gs_Tani_LoadTextureImage2(hand_block_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPLight((&light_fingA_3[0].l[0]),1 ),
gsSPLight((&light_fingA_3[0].a ),2 ),
gsSPVertex(&vtx_fingA_3_0[0], 15, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSP1Triangle( 4, 6, 5, 0),
gsSP1Triangle( 7, 8, 9, 0),
gsSP1Triangle( 8,10, 9, 0),
gsSP1Triangle(11,12,13, 0),
gsSP1Triangle(12,14,13, 0),
gsSPVertex(&vtx_fingA_3_0[15], 11, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSP1Triangle( 6, 7, 8, 0),
gsSP1Triangle( 7, 9, 8, 0),
gsSP1Triangle(10, 0, 2, 0),
gsSPEndDisplayList()
};
Gfx gfx_fingA_3[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_SHADING_SMOOTH),
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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_fingA_3_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList()
};