sm64/shape/enemy1_i/book/book_toothB_shape.sou
2022-12-04 22:27:02 -05:00

60 lines
2.5 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (book_toothB)
****************************************************************************************************/
#define book_toothB_AMB_SCALE 0.4
#define ShapeColor_book_toothB(R,G,B) {{R*book_toothB_AMB_SCALE ,G*book_toothB_AMB_SCALE ,B*book_toothB_AMB_SCALE ,0 ,R*book_toothB_AMB_SCALE ,G*book_toothB_AMB_SCALE ,B*book_toothB_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_book_toothB[] = {
ShapeColor_book_toothB(255,255,255),
};
static Vtx vtx_book_toothB_0[] = {
{ 157, -1, 100, 0, 32, 394, -125, -18, 0, 255},
{ 151, 39, 73, 0, 426, 774, -125, -18, 0, 255},
{ 157, -1, 49, 0, 414, -722, -125, -18, 0, 255},
{ 157, -1, 49, 0, -39, 392, -125, -18, 0, 255},
{ 151, 39, 25, 0, 457, 852, -125, -18, 0, 255},
{ 157, -1, 0, 0, 363, -564, -125, -18, 0, 255},
{ 157, -1, 0, 0, -1, 360, -125, -18, 0, 255},
{ 151, 39, -25, 0, 473, 906, -125, -18, 0, 255},
{ 157, -1, -50, 0, 372, -932, -125, -18, 0, 255},
{ 157, -1, -50, 0, 12, 240, -125, -18, 0, 255},
{ 151, 39, -77, 0, 491, 632, -125, -18, 0, 255},
{ 157, -1, -102, 0, 365, -1004, -125, -18, 0, 255},
};
static Gfx gfx_book_toothB_0[] = {
gs_Tani_LoadTextureImage2(book_ha_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7),
gsSPLight((&light_book_toothB[0].l[0]),1 ),
gsSPLight((&light_book_toothB[0].a ),2 ),
gsSPVertex(&vtx_book_toothB_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_book_toothB[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
gsSPClearGeometryMode(G_CULL_BACK),
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, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_book_toothB_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPEndDisplayList()
};