sm64/shape/enemy1_c/bom_king/king_crown_shape.sou
2022-12-04 22:27:02 -05:00

87 lines
3.8 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (king_crown)
****************************************************************************************************/
#define king_crown_AMB_SCALE 0.5
#define ShapeColor_king_crown(R,G,B) {{R*king_crown_AMB_SCALE ,G*king_crown_AMB_SCALE ,B*king_crown_AMB_SCALE ,0 ,R*king_crown_AMB_SCALE ,G*king_crown_AMB_SCALE ,B*king_crown_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
static Lights1 light_king_crown[] = {
ShapeColor_king_crown(255,255,255),
};
static Vtx vtx_king_crown_0[] = {
{ 729, 304, 176, 0, 394, -458, -17, 108, 62, 255},
{ 576, 296, 0, 0, 0, 234, -4, 126, 0, 255},
{ 416, 290, 0, 0, -31, 962, -23, 124, 0, 255},
{ 416, 145, 252, 0, 820, 962, -23, 62, 108, 255},
{ 576, 148, 257, 0, 820, 234, -4, 63, 109, 255},
{ 729, 0, 352, 0, 1246, -458, -17, 0, 125, 255},
{ 416, -144, 252, 0, 1671, 962, -23, -62, 108, 255},
{ 729, 304, -175, 0, 4652, -458, -18, 108, -62, 255},
{ 415, 145, -250, 0, 4226, 964, -23, 62, -108, 255},
{ 416, 290, 0, 0, 5079, 962, -23, 124, 0, 255},
{ 576, 296, 0, 0, 5078, 234, -4, 126, 0, 255},
{ 576, 148, -256, 0, 4226, 234, -5, 63, -109, 255},
{ 729, 0, -351, 0, 3800, -458, -18, 0, -125, 255},
{ 415, -144, -250, 0, 3374, 964, -23, -62, -108, 255},
{ 576, -147, -256, 0, 3374, 234, -5, -63, -109, 255},
{ 729, -304, -175, 0, 2948, -458, -18, -108, -62, 255},
{ 729, -304, -175, 0, 2948, -458, -18, -108, -62, 255},
{ 415, -289, 0, 0, 2522, 964, -23, -124, 0, 255},
{ 415, -144, -250, 0, 3374, 964, -23, -62, -108, 255},
{ 576, -295, 0, 0, 2523, 234, -4, -126, 0, 255},
{ 729, -304, 176, 0, 2097, -458, -17, -108, 62, 255},
{ 416, -144, 252, 0, 1671, 962, -23, -62, 108, 255},
{ 576, -147, 257, 0, 1671, 234, -4, -63, 109, 255},
{ 729, 0, 352, 0, 1246, -458, -17, 0, 125, 255},
};
static Gfx gfx_king_crown_0[] = {
gs_Tani_LoadTextureImage2(king_crown_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7),
gsSPLight((&light_king_crown[0].l[0]),1 ),
gsSPLight((&light_king_crown[0].a ),2 ),
gsSPVertex(&vtx_king_crown_0[0], 16, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 0, 0),
gsSP1Triangle( 0, 2, 3, 0),
gsSP1Triangle( 5, 4, 3, 0),
gsSP1Triangle( 5, 3, 6, 0),
gsSP1Triangle( 7, 8, 9, 0),
gsSP1Triangle( 9,10, 7, 0),
gsSP1Triangle( 7,11, 8, 0),
gsSP1Triangle(12,13, 8, 0),
gsSP1Triangle( 8,11,12, 0),
gsSP1Triangle(12,14,13, 0),
gsSP1Triangle(13,14,15, 0),
gsSPVertex(&vtx_king_crown_0[16], 8, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 0, 3, 1, 0),
gsSP1Triangle( 4, 5, 1, 0),
gsSP1Triangle( 1, 3, 4, 0),
gsSP1Triangle( 4, 6, 5, 0),
gsSP1Triangle( 5, 6, 7, 0),
gsSPEndDisplayList()
};
Gfx gfx_king_crown[] = {
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_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
gsSPDisplayList(gfx_king_crown_0),
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPEndDisplayList()
};