52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (king_eye)
|
|
****************************************************************************************************/
|
|
#define king_eye_AMB_SCALE 0.25
|
|
#define ShapeColor_king_eye(R,G,B) {{R*king_eye_AMB_SCALE ,G*king_eye_AMB_SCALE ,B*king_eye_AMB_SCALE ,0 ,R*king_eye_AMB_SCALE ,G*king_eye_AMB_SCALE ,B*king_eye_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_king_eye[] = {
|
|
ShapeColor_king_eye(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_king_eye_0[] = {
|
|
{ 124, 159, 493, 0, 0, 0, 0, 24, 124, 255},
|
|
{ -103, 159, 493, 0, 0, 990, 0, 24, 124, 255},
|
|
{ -103, 0, 524, 0, 478, 990, 0, 8, 126, 255},
|
|
{ 124, 0, 524, 0, 478, 0, 0, -8, 126, 255},
|
|
{ -103, -158, 493, 0, 990, 990, 0, -24, 124, 255},
|
|
{ 124, -158, 493, 0, 990, 0, 0, -24, 124, 255},
|
|
};
|
|
|
|
static Gfx gfx_king_eye_0[] = {
|
|
gs_Tani_LoadTextureImage2(bom_eye1_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_king_eye[0].l[0]),1 ),
|
|
gsSPLight((&light_king_eye[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_king_eye_0[0], 6, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 2, 4, 0),
|
|
gsSP1Triangle( 2, 3, 0, 0),
|
|
gsSP1Triangle( 4, 5, 3, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_king_eye[] = {
|
|
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_king_eye_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|