54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (wing5)
|
|
****************************************************************************************************/
|
|
|
|
#define SCALE 0.25
|
|
#define ShapeColor_wing5(R,G,B) { {R*SCALE ,G*SCALE ,B*SCALE ,0 ,R*SCALE ,G*SCALE ,B*SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_wing5[] = {
|
|
ShapeColor_wing5(255,255,255),
|
|
};
|
|
|
|
static Vtx vtx_wing5[] = {
|
|
{ 37, 1, -66, 0, 380, 184, 0, 127, 0,0},
|
|
{ 2, 1, -39, 0, 0, 528, 0, 127, 0,0},
|
|
{ 37, 1, 28, 0, 400, 1356, 0, 127, 0,0},
|
|
{ 2, 1, -39, 0, 0, 528, 0, 127, 0,0},
|
|
{ 1, 1, 72, 0, -56, 1904, 0, 127, 0,0},
|
|
{ 37, 1, 28, 0, 400, 1356, 0, 127, 0,0},
|
|
};
|
|
|
|
static Gfx gfx_wing5_0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, wingA_1_txt),
|
|
|
|
gsxDPLoadTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0,
|
|
G_TX_WRAP | G_TX_NOMIRROR, G_TX_WRAP | G_TX_NOMIRROR,
|
|
G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD ),
|
|
|
|
|
|
gsSPLight((&light_wing5[0].l[0]),1 ),
|
|
gsSPLight((&light_wing5[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_wing5[0], 12, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_lwing4[] = {
|
|
gsDPPipeSync(),
|
|
gsSPTexture(0x8000,0x8000, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
gsSPClearGeometryMode(G_CULL_BACK),
|
|
|
|
gsSPDisplayList(gfx_wing5_0),
|
|
|
|
gsSPTexture(0x8000, 0x8000, 1, 1, 0),
|
|
|
|
gsDPPipeSync(),
|
|
gsSPSetGeometryMode(G_CULL_BACK),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|