sm64/shape/enemy2_f/rabbit/rabi_body_shape.sou
2022-12-04 22:27:02 -05:00

126 lines
5.5 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (rabi_body)
****************************************************************************************************/
#define rabi_body_AMB_SCALE 0.4
#define ShapeColor_rabi_body(R,G,B) {{R*rabi_body_AMB_SCALE ,G*rabi_body_AMB_SCALE ,B*rabi_body_AMB_SCALE ,0 ,R*rabi_body_AMB_SCALE ,G*rabi_body_AMB_SCALE ,B*rabi_body_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_rabi_body[] = {
ShapeColor_rabi_body(255,255,255),
};
static Vtx vtx_rabi_body_0[] = {
{ -23, -21, -59, 0, -1764, 666, -34, -45, -113, 255},
{ -48, -27, -16, 0, -2202, 640, -108, 10, -65, 255},
{ -16, 41, -55, 0, -1306, -124, -27, 75, -98, 255},
{ -47, 37, 22, 0, -1840, -188, -112, 50, 28, 255},
{ -47, 37, -21, 0, -1840, -188, -104, 62, -36, 255},
{ -34, -55, 0, 0, -2112, 1046, 34, -122, 0, 255},
{ -48, -27, 18, 0, -2202, 640, -97, 38, 71, 255},
{ -75, -36, -40, 0, -2688, 648, -34, 48, -112, 255},
{ -16, 41, 56, 0, -1306, -124, -28, 74, 98, 255},
{ -23, -21, 60, 0, -1764, 666, -34, -46, 112, 255},
{ -75, -36, 42, 0, -2688, 648, -19, -5, 125, 255},
{ -15, 60, 0, 0, -1198, -360, -5, 126, 0, 255},
{ 12, -27, 49, 0, -1206, 880, 56, -74, 85, 255},
{ 17, 16, 52, 0, -886, 330, 57, 30, 108, 255},
{ 65, 12, 15, 0, -142, 578, 106, 28, 63, 255},
{ 12, -27, 49, 0, -1206, 880, 56, -74, 85, 255},
{ 33, -39, 0, 0, -928, 1112, 56, -113, 0, 255},
{ 64, -13, 0, 0, -292, 902, 107, -67, 0, 255},
{ -34, -55, 0, 0, -2112, 1046, 34, -122, 0, 255},
{ 65, 12, 15, 0, -142, 578, 106, 28, 63, 255},
{ 31, 35, 19, 0, -564, 142, 66, 103, 31, 255},
{ 17, 16, 52, 0, -886, 330, 57, 30, 108, 255},
{ -16, 41, 56, 0, -1306, -124, -28, 74, 98, 255},
{ 18, 18, -49, 0, -870, 316, 58, 33, -107, 255},
{ 31, 34, -18, 0, -570, 156, 64, 102, -38, 255},
{ 65, 12, -14, 0, -142, 578, 104, 48, -53, 255},
{ -23, -21, -59, 0, -1764, 666, -34, -45, -113, 255},
{ -16, 41, -55, 0, -1306, -124, -27, 75, -98, 255},
{ 12, -27, -48, 0, -1206, 882, 56, -72, -87, 255},
{ -15, 60, 0, 0, -1198, -360, -5, 126, 0, 255},
{ -34, -55, 0, 0, -2112, 1046, 34, -122, 0, 255},
{ -53, -82, 0, 0, -2566, 1322, 31, -122, -1, 255},
{ -75, -36, -40, 0, -2688, 648, -34, 48, -112, 255},
{ -75, -36, 42, 0, -2688, 648, -19, -5, 125, 255},
{ -15, 60, 0, 0, -1198, -360, -5, 126, 0, 255},
{ 31, 35, 19, 0, -564, 142, 66, 103, 31, 255},
{ 31, 34, -18, 0, -570, 156, 64, 102, -38, 255},
{ -82, -71, 0, 0, -2974, 1062, -98, -79, -1, 255},
};
static Gfx gfx_rabi_body_0[] = {
gs_Tani_LoadTextureImage2(rabi_face_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
gsSPLight((&light_rabi_body[0].l[0]),1 ),
gsSPLight((&light_rabi_body[0].a ),2 ),
gsSPVertex(&vtx_rabi_body_0[0], 15, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 0, 5, 1, 0),
gsSP1Triangle( 1, 6, 3, 0),
gsSP1Triangle( 1, 4, 2, 0),
gsSP1Triangle( 7, 1, 5, 0),
gsSP1Triangle( 6, 1, 7, 0),
gsSP1Triangle( 8, 6, 9, 0),
gsSP1Triangle( 5, 9, 6, 0),
gsSP1Triangle( 8, 3, 6, 0),
gsSP1Triangle( 7,10, 6, 0),
gsSP1Triangle( 5, 6,10, 0),
gsSP1Triangle( 8,11, 3, 0),
gsSP1Triangle(11, 4, 3, 0),
gsSP1Triangle( 9, 5,12, 0),
gsSP1Triangle( 8, 9,13, 0),
gsSP1Triangle( 9,12,13, 0),
gsSP1Triangle(11, 2, 4, 0),
gsSP1Triangle(12,14,13, 0),
gsSPVertex(&vtx_rabi_body_0[15], 15, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 1, 0, 0),
gsSP1Triangle( 0, 2, 4, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 7, 6, 5, 0),
gsSP1Triangle( 8, 9,10, 0),
gsSP1Triangle(11,12, 8, 0),
gsSP1Triangle( 9, 8,12, 0),
gsSP1Triangle( 8,13,11, 0),
gsSP1Triangle(13, 8,10, 0),
gsSP1Triangle(13, 1, 3, 0),
gsSP1Triangle(10, 2,13, 0),
gsSP1Triangle( 3,11,13, 0),
gsSP1Triangle( 2, 1,13, 0),
gsSP1Triangle(10, 9, 5, 0),
gsSP1Triangle( 5, 4,10, 0),
gsSP1Triangle(10, 4, 2, 0),
gsSP1Triangle( 5,14, 7, 0),
gsSP1Triangle(12,14, 9, 0),
gsSPVertex(&vtx_rabi_body_0[30], 8, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 1, 0, 0),
gsSP1Triangle( 4, 5, 6, 0),
gsSP1Triangle( 2, 7, 3, 0),
gsSP1Triangle( 1, 7, 2, 0),
gsSP1Triangle( 3, 7, 1, 0),
gsSPEndDisplayList()
};
Gfx gfx_rabi_body[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
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_rabi_body_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList()
};