sm64/shape/enemy1_d/ubboo/nn_eye_shape.sou
2022-12-04 22:27:02 -05:00

57 lines
2.2 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (nn_eye)
****************************************************************************************************/
static Vtx vtx_nn_eye_0[] = {
{ 506, -68, -120, 0, 1519, 199, -1, -1, -1, 255},
{ 679, 53, -99, 0, 224, 609, -1, -1, -1, 255},
{ 700, -50, -42, 0, 224, -160, -1, -1, -1, 255},
{ 768, 55, -3, 0, -519, 232, -1, -1, -1, 255},
{ 768, 55, 4, 0, -520, 232, -1, -1, -1, 255},
{ 679, 53, 100, 0, 223, 609, -1, -1, -1, 255},
{ 700, -50, 43, 0, 224, -160, -1, -1, -1, 255},
{ 679, 53, 100, 0, 224, 609, -1, -1, -1, 255},
{ 506, -68, 125, 0, 1526, 211, -1, -1, -1, 255},
};
static Gfx gfx_nn_eye_0[] = {
gs_Tani_LoadTextureImage2(eye_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, 7),
gsSPVertex(&vtx_nn_eye_0[0], 9, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 2, 1, 3, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 6, 7, 8, 0),
gsSPEndDisplayList()
};
Gfx gfx_nn_eye[] = {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_2CYCLE),
gsDPSetRenderMode(G_RM_FOG_SHADE_A, G_RM_AA_ZB_TEX_EDGE2),
gsDPSetDepthSource(G_ZS_PIXEL),
gsDPSetFogColor(STAGE7_UTUBO_FOG_R, STAGE7_UTUBO_FOG_G, STAGE7_UTUBO_FOG_B, 255),
gsSPFogPosition(STAGE7_UTUBO_FOG_START, 1000),
gsSPSetGeometryMode(G_FOG),
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_PASS2),
gsSPClearGeometryMode(G_LIGHTING),
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, 16, 16, 0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 4, G_TX_NOLOD),
gsSPDisplayList(gfx_nn_eye_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE),
gsSPClearGeometryMode(G_FOG),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList()
};