50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (fura_Rleaf)
|
|
****************************************************************************************************/
|
|
#define fura_Rleaf_AMB_SCALE 0.5
|
|
#define ShapeColor_fura_Rleaf(R,G,B) {{R*fura_Rleaf_AMB_SCALE ,G*fura_Rleaf_AMB_SCALE ,B*fura_Rleaf_AMB_SCALE ,0 ,R*fura_Rleaf_AMB_SCALE ,G*fura_Rleaf_AMB_SCALE ,B*fura_Rleaf_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_fura_Rleaf[] = {
|
|
ShapeColor_fura_Rleaf(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_fura_Rleaf_0[] = {
|
|
{ 0, -33, -69, 0, 514, 1102, -96, 64, -51, 255},
|
|
{ 13, -2, 0, 0, 1070, 398, -100, 76, -15, 255},
|
|
{ 53, 33, -86, 0, 138, -146, -96, 64, -51, 255},
|
|
{ 62, -15, -122, 0, -146, 482, -84, 46, -82, 255},
|
|
};
|
|
|
|
static Gfx gfx_fura_Rleaf_0[] = {
|
|
gs_Tani_LoadTextureImage2(happa_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPClearGeometryMode( G_CULL_BACK ),
|
|
gsSPLight((&light_fura_Rleaf[0].l[0]),1 ),
|
|
gsSPLight((&light_fura_Rleaf[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_fura_Rleaf_0[0], 4, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 0, 2, 0),
|
|
gsSPSetGeometryMode( G_CULL_BACK ),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_fura_Rleaf[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
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_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_fura_Rleaf_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|