90 lines
3.6 KiB
Plaintext
90 lines
3.6 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (shell_B)
|
|
****************************************************************************************************/
|
|
#define shell_B_AMB_SCALE 0.4
|
|
#define ShapeColor_shell_B(R,G,B) {{R*shell_B_AMB_SCALE ,G*shell_B_AMB_SCALE ,B*shell_B_AMB_SCALE ,0 ,R*shell_B_AMB_SCALE ,G*shell_B_AMB_SCALE ,B*shell_B_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_shell_B[] = {
|
|
ShapeColor_shell_B(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_shell_B_0[] = {
|
|
{ 260, 0, 0, 0, 480, 600, -11, 126, 7, 255},
|
|
{ -531, -1, 132, 0, 580, -8, 0, -127, 0, 255},
|
|
{ -124, -74, 529, 0, 886, 304, -1, -1, -1, 255},
|
|
{ 692, -45, 0, 0, 480, 932, -127, 0, 0, 255},
|
|
{ 556, -160, -434, 0, 144, 828, 0, -127, 0, 255},
|
|
{ 248, -68, -657, 0, -26, 590, 0, 0, -127, 255},
|
|
{ -124, -74, -528, 0, 72, 304, -1, -1, -1, 255},
|
|
{ 248, -68, 658, 0, 984, 590, 15, 125, 15, 255},
|
|
{ 556, -160, 435, 0, 814, 828, 0, 0, 127, 255},
|
|
{ -531, -1, -131, 0, 378, -8, 0, -127, 0, 255},
|
|
};
|
|
|
|
static Vtx vtx_shell_B_1[] = {
|
|
{ 556, -160, 435, 0, 790, 796, 0, 0, 127, 255},
|
|
{ 248, -68, 658, 0, 948, 568, 15, 125, 15, 255},
|
|
{ 260, 0, 0, 0, 480, 576, -11, 126, 7, 255},
|
|
{ 692, -45, 0, 0, 480, 896, -127, 0, 0, 255},
|
|
{ 556, -160, -434, 0, 168, 796, 0, -127, 0, 255},
|
|
{ -124, -74, 529, 0, 856, 292, -1, -1, -1, 255},
|
|
{ -124, -74, -528, 0, 102, 292, -1, -1, -1, 255},
|
|
{ 248, -68, -657, 0, 10, 568, 0, 0, -127, 255},
|
|
{ -531, -1, 132, 0, 574, -8, 0, -127, 0, 255},
|
|
{ -531, -1, -131, 0, 384, -8, 0, -127, 0, 255},
|
|
};
|
|
|
|
static Gfx gfx_shell_B_0[] = {
|
|
gs_Tani_LoadTextureImage2(shellA_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_shell_B[0].l[0]),1 ),
|
|
gsSPLight((&light_shell_B[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_shell_B_0[0], 10, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 0, 0),
|
|
gsSP1Triangle( 4, 5, 0, 0),
|
|
gsSP1Triangle( 0, 5, 6, 0),
|
|
gsSP1Triangle( 0, 7, 8, 0),
|
|
gsSP1Triangle( 2, 7, 0, 0),
|
|
gsSP1Triangle( 8, 3, 0, 0),
|
|
gsSP1Triangle( 0, 9, 1, 0),
|
|
gsSP1Triangle( 6, 9, 0, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_shell_B_1[] = {
|
|
gs_Tani_LoadTextureImage2(shellB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
gsSPVertex(&vtx_shell_B_1[0], 10, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 3, 0, 0),
|
|
gsSP1Triangle( 2, 4, 3, 0),
|
|
gsSP1Triangle( 2, 1, 5, 0),
|
|
gsSP1Triangle( 6, 7, 2, 0),
|
|
gsSP1Triangle( 2, 7, 4, 0),
|
|
gsSP1Triangle( 8, 9, 2, 0),
|
|
gsSP1Triangle( 2, 9, 6, 0),
|
|
gsSP1Triangle( 5, 8, 2, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_shell_B[] = {
|
|
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_shell_B_0),
|
|
gsSPDisplayList(gfx_shell_B_1),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|