sm64/shape/enemy1_a/bird/rwing3_text_unit.sou
2022-12-04 22:27:02 -05:00

54 lines
1.8 KiB
Plaintext

/***************************************************************************************************
Convert from NINGEN (wing3)
****************************************************************************************************/
#define SCALE 0.25
#define ShapeColor_wing3(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_wing3[] = {
ShapeColor_wing3(255,255,255),
};
static Vtx vtx_wing3[] = {
{ 89, 1, -94, 0, 984, 2096, 0, 127, 0,0},
{ 37, 1, 67, 0, 368, 192, 0, 127, 0,0},
{ 89, 1, 47, 0, 992, 436, 0, 127, 0,0},
{ 89, 1, -94, 0, 984, 2096, 0, 127, 0,0},
{ 37, 1, -28, 0, 360, 1324, 0, 127, 0,0},
{ 37, 1, 67, 0, 368, 192, 0, 127, 0,0},
};
static Gfx gfx_wing3_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_wing3[0].l[0]),1 ),
gsSPLight((&light_wing3[0].a ),2 ),
gsSPVertex(&vtx_wing3[0], 12, 0),
gsSP1Triangle( 0, 1, 2, 0),
gsSP1Triangle( 3, 4, 5, 0),
gsSPEndDisplayList()
};
Gfx gfx_rwing3[] = {
gsDPPipeSync(),
gsSPTexture(0x8000,0x8000, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
gsSPClearGeometryMode(G_CULL_BACK),
gsSPDisplayList(gfx_wing3_0),
gsSPTexture(0x8000, 0x8000, 1, 1, 0),
gsDPPipeSync(),
gsSPSetGeometryMode(G_CULL_BACK),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList()
};