77 lines
3.4 KiB
Plaintext
77 lines
3.4 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (chairC)
|
|
****************************************************************************************************/
|
|
#define chairC_AMB_SCALE 0.4
|
|
#define ShapeColor_chairC(R,G,B) {{R*chairC_AMB_SCALE ,G*chairC_AMB_SCALE ,B*chairC_AMB_SCALE ,0 ,R*chairC_AMB_SCALE ,G*chairC_AMB_SCALE ,B*chairC_AMB_SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_chairC[] = {
|
|
ShapeColor_chairC(178,178,178),
|
|
};
|
|
|
|
static Vtx vtx_chairC_0[] = {
|
|
{ 146, -22, 104, 0, 998, 990, -17, 0, 125, 255},
|
|
{ 146, 26, 104, 0, 998, 990, -17, 0, 125, 255},
|
|
{ -8, 26, 82, 0, 886, -24, -17, 0, 125, 255},
|
|
{ 146, 26, 104, 0, 998, 990, 127, 0, 0, 255},
|
|
{ 146, -22, -102, 0, 0, 990, 127, 0, 0, 255},
|
|
{ 146, 26, -102, 0, 0, 990, 127, 0, 0, 255},
|
|
{ 146, -22, 104, 0, 998, 990, 127, 0, 0, 255},
|
|
{ 146, 26, 104, 0, 998, 990, 0, 127, 0, 255},
|
|
{ -8, 26, -79, 0, 78, -24, 0, 127, 0, 255},
|
|
{ -8, 26, 82, 0, 886, -24, 0, 127, 0, 255},
|
|
{ 146, 26, -102, 0, 0, 990, 0, 127, 0, 255},
|
|
{ 146, -22, -102, 0, 0, 990, 0, -127, 0, 255},
|
|
{ -8, -22, 82, 0, 886, -24, 0, -127, 0, 255},
|
|
{ -8, -22, -79, 0, 78, -24, 0, -127, 0, 255},
|
|
{ 146, -22, 104, 0, 998, 990, 0, -127, 0, 255},
|
|
{ 146, 26, -102, 0, 0, 990, -18, 0, -125, 255},
|
|
{ 146, -22, -102, 0, 0, 990, -18, 0, -125, 255},
|
|
{ -8, -22, -79, 0, 78, -24, -18, 0, -125, 255},
|
|
{ -8, 26, -79, 0, 78, -24, -18, 0, -125, 255},
|
|
{ 146, -22, 104, 0, 998, 990, -17, 0, 125, 255},
|
|
{ -8, 26, 82, 0, 886, -24, -17, 0, 125, 255},
|
|
{ -8, -22, 82, 0, 886, -24, -17, 0, 125, 255},
|
|
};
|
|
|
|
static Gfx gfx_chairC_0[] = {
|
|
gs_Tani_LoadTextureImage2(chair_woodB_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
|
|
gsSPLight((&light_chairC[0].l[0]),1 ),
|
|
gsSPLight((&light_chairC[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_chairC_0[0], 15, 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),
|
|
gsSPVertex(&vtx_chairC_0[15], 7, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_chairC[] = {
|
|
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_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPDisplayList(gfx_chairC_0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|