87 lines
3.9 KiB
Plaintext
87 lines
3.9 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (chairA)
|
|
****************************************************************************************************/
|
|
#define chairA_AMB_SCALE 0.4
|
|
#define ShapeColor_chairA(R,G,B) {{R*chairA_AMB_SCALE ,G*chairA_AMB_SCALE ,B*chairA_AMB_SCALE ,0 ,R*chairA_AMB_SCALE ,G*chairA_AMB_SCALE ,B*chairA_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_chairA[] = {
|
|
ShapeColor_chairA(178,178,178),
|
|
};
|
|
|
|
static Vtx vtx_chairA_0[] = {
|
|
{ 334, -20, 1, 0, 474, -182, 119, 0, -42, 255},
|
|
{ 287, -20, -132, 0, 1212, 58, 119, 0, -42, 255},
|
|
{ 334, 25, 1, 0, 474, -182, 119, 0, -42, 255},
|
|
{ 334, 25, 1, 0, 474, -182, 119, 0, 42, 255},
|
|
{ 287, 25, 134, 0, -262, 58, 119, 0, 42, 255},
|
|
{ 334, -20, 1, 0, 474, -182, 119, 0, 42, 255},
|
|
{ 287, -20, 134, 0, -262, 58, 119, 0, 42, 255},
|
|
{ 287, -20, -132, 0, 1212, 58, 0, -127, 0, 255},
|
|
{ 334, -20, 1, 0, 474, -182, 0, -127, 0, 255},
|
|
{ 287, -20, 134, 0, -262, 58, 0, -127, 0, 255},
|
|
{ -7, -20, -91, 0, 986, 1536, -17, 0, -125, 255},
|
|
{ -7, 25, -91, 0, 986, 1536, -17, 0, -125, 255},
|
|
{ 287, -20, -132, 0, 1212, 58, -17, 0, -125, 255},
|
|
{ 287, 25, -132, 0, 1212, 58, -17, 0, -125, 255},
|
|
{ 287, 25, -132, 0, 1212, 58, 119, 0, -42, 255},
|
|
{ -7, -20, -91, 0, 986, 1536, 0, -127, 0, 255},
|
|
{ 287, 25, 134, 0, -262, 58, 0, 127, 0, 255},
|
|
{ 334, 25, 1, 0, 474, -182, 0, 127, 0, 255},
|
|
{ 287, 25, -132, 0, 1212, 58, 0, 127, 0, 255},
|
|
{ -7, 25, -91, 0, 986, 1536, 0, 127, 0, 255},
|
|
{ -7, 25, 93, 0, -34, 1536, 0, 127, 0, 255},
|
|
{ -7, -20, 93, 0, -34, 1536, -17, 0, 125, 255},
|
|
{ 287, -20, 134, 0, -262, 58, -17, 0, 125, 255},
|
|
{ 287, 25, 134, 0, -262, 58, -17, 0, 125, 255},
|
|
{ -7, 25, 93, 0, -34, 1536, -17, 0, 125, 255},
|
|
{ -7, -20, 93, 0, -34, 1536, 0, -127, 0, 255},
|
|
{ -7, -20, -91, 0, 986, 1536, 0, -127, 0, 255},
|
|
{ 287, -20, 134, 0, -262, 58, 0, -127, 0, 255},
|
|
};
|
|
|
|
static Gfx gfx_chairA_0[] = {
|
|
gs_Tani_LoadTextureImage2(chair_woodA_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_chairA[0].l[0]),1 ),
|
|
gsSPLight((&light_chairA[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_chairA_0[0], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 4, 6, 5, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle(10,11,12, 0),
|
|
gsSP1Triangle(11,13,12, 0),
|
|
gsSP1Triangle( 1,14, 2, 0),
|
|
gsSP1Triangle(15, 7, 9, 0),
|
|
gsSPVertex(&vtx_chairA_0[16], 12, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 2, 0),
|
|
gsSP1Triangle( 4, 0, 2, 0),
|
|
gsSP1Triangle( 5, 6, 7, 0),
|
|
gsSP1Triangle( 8, 5, 7, 0),
|
|
gsSP1Triangle( 9,10,11, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_chairA[] = {
|
|
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, 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_chairA_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|