73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (nes_Rhand)
|
|
****************************************************************************************************/
|
|
#define nes_Rhand_AMB_SCALE 0.5
|
|
#define ShapeColor_nes_Rhand(R,G,B) {{R*nes_Rhand_AMB_SCALE ,G*nes_Rhand_AMB_SCALE ,B*nes_Rhand_AMB_SCALE ,0 ,R*nes_Rhand_AMB_SCALE ,G*nes_Rhand_AMB_SCALE ,B*nes_Rhand_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_nes_Rhand[] = {
|
|
ShapeColor_nes_Rhand(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_nes_Rhand_0[] = {
|
|
{ 1134, -13, 872, 0, 268, 1708, -34, -63, 104, 255},
|
|
{ 1286, -114, -315, 0, 328, 1164, 13, 31, -122, 255},
|
|
{ 2428, -73, 422, 0, 474, 1360, 86, 42, -82, 255},
|
|
{ -60, 113, 170, 0, 116, 1520, -32, 118, -30, 255},
|
|
{ 1287, 107, -5, 0, 320, 1288, 14, 122, -32, 255},
|
|
{ -61, -108, -139, 0, 124, 1396, -56, -113, 5, 255},
|
|
{ 2428, 37, 731, 0, 464, 1492, 23, 124, -8, 255},
|
|
{ 2703, -24, 1004, 0, 496, 1588, 61, 110, 3, 255},
|
|
};
|
|
|
|
static Gfx gfx_nes_Rhand_0[] = {
|
|
gs_Tani_LoadTextureImage2(nes_skinC_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 64, 0, 7),
|
|
|
|
gsSPLight((&light_nes_Rhand[0].l[0]),1 ),
|
|
gsSPLight((&light_nes_Rhand[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_nes_Rhand_0[0], 8, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 1, 0),
|
|
gsSP1Triangle( 1, 5, 3, 0),
|
|
gsSP1Triangle( 2, 1, 4, 0),
|
|
gsSP1Triangle( 0, 5, 1, 0),
|
|
gsSP1Triangle( 3, 5, 0, 0),
|
|
gsSP1Triangle( 4, 3, 0, 0),
|
|
gsSP1Triangle( 6, 7, 2, 0),
|
|
gsSP1Triangle( 4, 6, 2, 0),
|
|
gsSP1Triangle( 2, 7, 0, 0),
|
|
gsSP1Triangle( 6, 4, 0, 0),
|
|
gsSP1Triangle( 0, 7, 6, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_nes_Rhand[] = {
|
|
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_Rhand_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()
|
|
};
|
|
|