64 lines
2.4 KiB
Plaintext
64 lines
2.4 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (cube2)
|
|
****************************************************************************************************/
|
|
#define CUBE2_AMB_SCALE 0.5
|
|
#define ShapeColor_cube2(R,G,B) {{R*CUBE2_AMB_SCALE ,G*CUBE2_AMB_SCALE ,B*CUBE2_AMB_SCALE ,0 ,R*CUBE2_AMB_SCALE ,G*CUBE2_AMB_SCALE ,B*CUBE2_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_cubex2[] = {
|
|
ShapeColor_cube2(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_cube2_0[] = {
|
|
{ 47, 12, 14, 0, 160, 998, 84, 84, 43, 255},
|
|
{ 46, -14, -13, 0, 924, 1008, 78, -89, -43, 255},
|
|
{ 47, 12, -13, 0, 538, 998, 45, 51, -106, 255},
|
|
{ -2, 11, -10, 0, 546, -98, -87, 82, -41, 255},
|
|
{ -2, -11, -10, 0, 932, -90, -59, -50, -100, 255},
|
|
{ 47, 12, 14, 0, 1694, 998, 84, 84, 43, 255},
|
|
{ 46, -14, 14, 0, 1314, 1008, 45, -54, 105, 255},
|
|
{ -2, -11, 12, 0, 1306, -90, -88, -81, 40, 255},
|
|
{ -2, 11, 12, 0, 152, -98, -56, 51, 101, 255},
|
|
{ -2, 11, 12, 0, 1686, -98, -56, 51, 101, 255},
|
|
};
|
|
|
|
static Gfx gfx_cube2_0[] = {
|
|
gs_Tani_LoadTextureImage2(monky_skinB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_cubex2[0].l[0]),1 ),
|
|
gsSPLight((&light_cubex2[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_cube2_0[0], 10, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 2, 1, 4, 0),
|
|
gsSP1Triangle( 2, 4, 3, 0),
|
|
gsSP1Triangle( 5, 6, 1, 0),
|
|
gsSP1Triangle( 1, 6, 7, 0),
|
|
gsSP1Triangle( 1, 7, 4, 0),
|
|
gsSP1Triangle( 3, 4, 7, 0),
|
|
gsSP1Triangle( 0, 3, 8, 0),
|
|
gsSP1Triangle( 3, 7, 9, 0),
|
|
gsSP1Triangle( 6, 5, 9, 0),
|
|
gsSP1Triangle( 6, 9, 7, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_cube2[] = {
|
|
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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_cube2_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|