60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (wan_eye)
|
|
****************************************************************************************************/
|
|
#define wan_eye_AMB_SCALE 0.4
|
|
#define ShapeColor_wan_eye(R,G,B) {{R*wan_eye_AMB_SCALE ,G*wan_eye_AMB_SCALE ,B*wan_eye_AMB_SCALE ,0 ,R*wan_eye_AMB_SCALE ,G*wan_eye_AMB_SCALE ,B*wan_eye_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_wan_eye[] = {
|
|
ShapeColor_wan_eye(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_wan_eye_0[] = {
|
|
{ 341, -287, 410, 0, 990, 0, 105, -25, 65, 255},
|
|
{ 505, -32, 246, 0, 0, 990, 105, -25, 65, 255},
|
|
{ 374, -49, 450, 0, 990, 990, 105, -25, 65, 255},
|
|
{ 341, -287, 410, 0, 990, 0, 105, -25, 66, 255},
|
|
{ 473, -270, 206, 0, 0, 0, 105, -25, 66, 255},
|
|
{ 505, -32, 246, 0, 0, 990, 105, -25, 66, 255},
|
|
{ 374, -49, -449, 0, 990, 990, 105, -25, -65, 255},
|
|
{ 505, -32, -245, 0, 0, 990, 105, -25, -65, 255},
|
|
{ 341, -287, -409, 0, 990, 0, 105, -25, -65, 255},
|
|
{ 505, -32, -245, 0, 0, 990, 105, -25, -66, 255},
|
|
{ 473, -270, -205, 0, 0, 0, 105, -25, -66, 255},
|
|
{ 341, -287, -409, 0, 990, 0, 105, -25, -66, 255},
|
|
};
|
|
|
|
static Gfx gfx_wan_eye_0[] = {
|
|
gs_Tani_LoadTextureImage2(wanme_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_wan_eye[0].l[0]),1 ),
|
|
gsSPLight((&light_wan_eye[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_wan_eye_0[0], 12, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 7, 8, 0),
|
|
gsSP1Triangle( 9,10,11, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_wan_eye[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
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_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_wan_eye_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|