72 lines
2.7 KiB
Plaintext
72 lines
2.7 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (nes_Lhand)
|
|
****************************************************************************************************/
|
|
#define nes_Lhand_AMB_SCALE 0.5
|
|
#define ShapeColor_nes_Lhand(R,G,B) {{R*nes_Lhand_AMB_SCALE ,G*nes_Lhand_AMB_SCALE ,B*nes_Lhand_AMB_SCALE ,0 ,R*nes_Lhand_AMB_SCALE ,G*nes_Lhand_AMB_SCALE ,B*nes_Lhand_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_nes_Lhand[] = {
|
|
ShapeColor_nes_Lhand(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_nes_Lhand_0[] = {
|
|
{ 1134, -10, -867, 0, 594, 1972, -35, -61, -105, 255},
|
|
{ 2429, -78, -421, 0, 406, 1676, 98, -38, 70, 255},
|
|
{ 1289, -124, 319, 0, 620, 1500, 23, 70, 102, 255},
|
|
{ -58, 112, -160, 0, 816, 1804, -32, 118, 32, 255},
|
|
{ -58, -112, 147, 0, 830, 1696, -56, -113, -5, 255},
|
|
{ 2429, 35, -729, 0, 394, 1792, 28, 121, 22, 255},
|
|
{ 1290, 101, 11, 0, 608, 1608, 11, 122, 30, 255},
|
|
{ 2703, -24, -1003, 0, 338, 1876, 62, 110, -2, 255},
|
|
};
|
|
|
|
static Gfx gfx_nes_Lhand_0[] = {
|
|
gs_Tani_LoadTextureImage2(nes_skinC_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
|
|
|
|
gsSPLight((&light_nes_Lhand[0].l[0]),1 ),
|
|
gsSPLight((&light_nes_Lhand[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_nes_Lhand_0[0], 8, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 2, 0),
|
|
gsSP1Triangle( 2, 1, 5, 0),
|
|
gsSP1Triangle( 2, 6, 3, 0),
|
|
gsSP1Triangle( 5, 6, 2, 0),
|
|
gsSP1Triangle( 2, 4, 0, 0),
|
|
gsSP1Triangle( 6, 5, 0, 0),
|
|
gsSP1Triangle( 0, 3, 6, 0),
|
|
gsSP1Triangle( 0, 4, 3, 0),
|
|
gsSP1Triangle( 1, 7, 5, 0),
|
|
gsSP1Triangle( 5, 7, 0, 0),
|
|
gsSP1Triangle( 0, 7, 1, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_nes_Lhand[] = {
|
|
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_Lhand_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()
|
|
};
|