81 lines
3.6 KiB
Plaintext
81 lines
3.6 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (chairB)
|
|
****************************************************************************************************/
|
|
#define chairB_AMB_SCALE 0.4
|
|
#define ShapeColor_chairB(R,G,B) {{R*chairB_AMB_SCALE ,G*chairB_AMB_SCALE ,B*chairB_AMB_SCALE ,0 ,R*chairB_AMB_SCALE ,G*chairB_AMB_SCALE ,B*chairB_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_chairB[] = {
|
|
ShapeColor_chairB(178,178,178),
|
|
};
|
|
|
|
static Vtx vtx_chairB_0[] = {
|
|
{ 208, -20, -125, 0, 1934, 0, 0, 0, -127, 255},
|
|
{ -38, 24, -125, 0, 1935, 990, 0, 0, -127, 255},
|
|
{ 208, 24, -125, 0, 1934, 0, 0, 0, -127, 255},
|
|
{ 208, 24, -125, 0, 1934, 0, 0, 127, 0, 255},
|
|
{ -38, 24, 127, 0, -20, 990, 0, 127, 0, 255},
|
|
{ 208, 24, 127, 0, -21, 0, 0, 127, 0, 255},
|
|
{ -38, 24, -125, 0, 1935, 990, 0, 127, 0, 255},
|
|
{ 208, -20, 127, 0, -21, 0, 127, 0, 0, 255},
|
|
{ 208, 24, -125, 0, 1934, 0, 127, 0, 0, 255},
|
|
{ 208, 24, 127, 0, -21, 0, 127, 0, 0, 255},
|
|
{ 208, -20, -125, 0, 1934, 0, 127, 0, 0, 255},
|
|
{ -38, -20, -125, 0, 1935, 990, -127, 0, 0, 255},
|
|
{ -38, 24, 127, 0, -20, 990, -127, 0, 0, 255},
|
|
{ -38, 24, -125, 0, 1935, 990, -127, 0, 0, 255},
|
|
{ -38, -20, 127, 0, -20, 990, -127, 0, 0, 255},
|
|
{ -38, -20, -125, 0, 1935, 990, 0, 0, -127, 255},
|
|
{ 208, -20, 127, 0, -21, 0, 0, -127, 0, 255},
|
|
{ -38, -20, -125, 0, 1935, 990, 0, -127, 0, 255},
|
|
{ 208, -20, -125, 0, 1934, 0, 0, -127, 0, 255},
|
|
{ -38, -20, 127, 0, -20, 990, 0, -127, 0, 255},
|
|
{ -38, -20, 127, 0, 577, 990, 0, 0, 127, 255},
|
|
{ 208, -20, 127, 0, 511, 0, 0, 0, 127, 255},
|
|
{ 208, 24, 127, 0, 511, 0, 0, 0, 127, 255},
|
|
{ -38, 24, 127, 0, 577, 990, 0, 0, 127, 255},
|
|
};
|
|
|
|
static Gfx gfx_chairB_0[] = {
|
|
gs_Tani_LoadTextureImage2(chair_woodC_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 32, 0, 7),
|
|
|
|
gsSPLight((&light_chairB[0].l[0]),1 ),
|
|
gsSPLight((&light_chairB[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_chairB_0[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 3, 6, 4, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle( 7,10, 8, 0),
|
|
gsSP1Triangle(11,12,13, 0),
|
|
gsSP1Triangle(11,14,12, 0),
|
|
gsSP1Triangle( 0,15, 1, 0),
|
|
gsSPVertex(&vtx_chairB_0[16], 8, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 3, 1, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 4, 6, 7, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_chairB[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_chairB_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|