65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (cube1)
|
|
****************************************************************************************************/
|
|
#define CUBE1_AMB_SCALE 0.5
|
|
#define ShapeColor_cube1(R,G,B) {{R*CUBE1_AMB_SCALE ,G*CUBE1_AMB_SCALE ,B*CUBE1_AMB_SCALE ,0 ,R*CUBE1_AMB_SCALE ,G*CUBE1_AMB_SCALE ,B*CUBE1_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_cubex1[] = {
|
|
ShapeColor_cube1(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_cube1_0[] = {
|
|
{ 48, 11, 12, 0, 1362, 20, 85, 82, 44, 255},
|
|
{ 46, -11, -10, 0, 876, -10, 70, -96, -44, 255},
|
|
{ 48, 11, -10, 0, 1132, 20, 45, 49, -107, 255},
|
|
{ 7, -4, -7, 0, 862, 1056, -65, -44, -98, 255},
|
|
{ 8, 11, -7, 0, 1120, 1078, -83, 86, -40, 255},
|
|
{ 46, -11, 12, 0, 590, -10, 33, -57, 108, 255},
|
|
{ 7, -4, 8, 0, 604, 1056, -96, -72, 39, 255},
|
|
{ 48, 11, 12, 0, 340, 20, 85, 82, 44, 255},
|
|
{ 8, 11, 8, 0, 352, 1078, -59, 53, 98, 255},
|
|
{ 8, 11, -7, 0, 98, 1078, -83, 86, -40, 255},
|
|
{ 48, 11, -10, 0, 110, 20, 45, 49, -107, 255},
|
|
};
|
|
|
|
static Gfx gfx_cube1_0[] = {
|
|
gs_Tani_LoadTextureImage2(monky_skinB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_cubex1[0].l[0]),1 ),
|
|
gsSPLight((&light_cubex1[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_cube1_0[0], 11, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 2, 1, 3, 0),
|
|
gsSP1Triangle( 2, 3, 4, 0),
|
|
gsSP1Triangle( 0, 5, 1, 0),
|
|
gsSP1Triangle( 1, 5, 6, 0),
|
|
gsSP1Triangle( 1, 6, 3, 0),
|
|
gsSP1Triangle( 4, 3, 6, 0),
|
|
gsSP1Triangle( 5, 7, 8, 0),
|
|
gsSP1Triangle( 5, 8, 6, 0),
|
|
gsSP1Triangle( 9, 6, 8, 0),
|
|
gsSP1Triangle( 7, 9, 8, 0),
|
|
gsSP1Triangle( 7,10, 9, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_cube1[] = {
|
|
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_cube1_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|