58 lines
2.2 KiB
Plaintext
58 lines
2.2 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (star_eye)
|
|
****************************************************************************************************/
|
|
#define SCALE 0.25
|
|
#define ShapeColor_star_eye(R,G,B) {{R*SCALE ,G*SCALE ,B*SCALE ,0 ,R*SCALE ,G*SCALE ,B*SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_star_eye[] = {
|
|
ShapeColor_star_eye(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_star_eye_0[] = {
|
|
{ 67, 86, 63, 0, 990, 0, 24, 21, 122, 255},
|
|
{ 0, -27, 96, 0, 0, 990, 24, 21, 122, 255},
|
|
{ 67, -29, 83, 0, 990, 990, 24, 21, 122, 255},
|
|
{ 0, 89, 76, 0, 0, 0, 24, 21, 122, 255},
|
|
{ 0, 89, 76, 0, 990, 0, -24, 21, 122, 255},
|
|
{ -66, -29, 83, 0, 0, 990, -24, 21, 122, 255},
|
|
{ 0, -27, 96, 0, 990, 990, -24, 21, 122, 255},
|
|
{ 0, 89, 76, 0, 990, 0, -25, 21, 122, 255},
|
|
{ -66, 86, 63, 0, 0, 0, -25, 21, 122, 255},
|
|
{ -66, -29, 83, 0, 0, 990, -25, 21, 122, 255},
|
|
};
|
|
|
|
static Gfx gfx_star_eye_0[] = {
|
|
gs_Tani_LoadTextureImage2(star_eye_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_star_eye[0].l[0]),1 ),
|
|
gsSPLight((&light_star_eye[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_star_eye_0[0], 10, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 3, 1, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_star_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_star_eye_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|