#include "common.h" #include "entity/model/ScriptSpring_1.vtx.inc.c" #include "entity/model/ScriptSpring_2.vtx.inc.c" #include "entity/model/ScriptSpring_3.vtx.inc.c" #include "entity/model/ScriptSpring_4.vtx.inc.c" #include "entity/model/ScriptSpring_5.vtx.inc.c" #include "entity/model/ScriptSpring_6.vtx.inc.c" #include "entity/model/ScriptSpring_7.vtx.inc.c" #include "entity/model/ScriptSpring_tex1.png.inc.c" #include "entity/model/ScriptSpring_tex1.pal.inc.c" Gfx Entity_ScriptSpring_LoadTexture1[] = { gsDPSetTextureLUT(G_TT_RGBA16), gsDPLoadTLUT_pal256(D_0A000960_E66100), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA), gsDPSetTextureDetail(G_TD_CLAMP), gsDPSetTextureLOD(G_TL_TILE), gsDPLoadTextureBlock(D_0A000860_E66000, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD), gsDPSetTexturePersp(G_TP_PERSP), gsDPSetTextureFilter(G_TF_BILERP), gsSPEndDisplayList(), }; #include "entity/model/ScriptSpring_tex2.png.inc.c" #include "entity/model/ScriptSpring_tex2.pal.inc.c" Gfx Entity_ScriptSpring_LoadTexture2[] = { gsDPSetTextureLUT(G_TT_RGBA16), gsDPLoadTLUT_pal256(D_0A000D08_E664A8), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA), gsDPSetTextureDetail(G_TD_CLAMP), gsDPSetTextureLOD(G_TL_TILE), gsDPLoadTextureBlock(D_0A000C08_E663A8, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD), gsDPSetTexturePersp(G_TP_PERSP), gsDPSetTextureFilter(G_TF_BILERP), gsSPEndDisplayList(), }; #include "entity/model/ScriptSpring_star.png.inc.c" #include "entity/model/ScriptSpring_star.pal.inc.c" Gfx Entity_ScriptSpring_LoadTextureStar[] = { gsDPSetTextureLUT(G_TT_RGBA16), gsDPLoadTLUT_pal256(D_0A0013B0_E66B50), gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA), gsDPSetTextureDetail(G_TD_CLAMP), gsDPSetTextureLOD(G_TL_TILE), gsDPLoadTextureBlock(D_0A000FB0_E66750, G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD), gsDPSetTexturePersp(G_TP_PERSP), gsDPSetTextureFilter(G_TF_BILERP), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart2[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2), gsSPDisplayList(Entity_ScriptSpring_LoadTextureStar), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A0007E0_E65F80, 8, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0), gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart6[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsSPDisplayList(Entity_ScriptSpring_LoadTexture1), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000680_E65E20, 22, 0), gsSP2Triangles(0, 1, 2, 0, 3, 2, 4, 0), gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0), gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0), gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart1[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsSPDisplayList(Entity_ScriptSpring_LoadTexture2), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000400_E65BA0, 18, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0), gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0), gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0), gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0), gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0), gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0), gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0), gsSPVertex(&D_0A000400_E65BA0[18], 22, 0), gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0), gsSP2Triangles(5, 6, 7, 0, 5, 8, 9, 0), gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0), gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart3[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000380_E65B20, 8, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0), gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart4[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000300_E65AA0, 8, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0), gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart5[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000280_E65A20, 8, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0), gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0), gsSPEndDisplayList(), }; Gfx Entity_ScriptSpring_RenderPart7[] = { gsDPPipeSync(), gsDPSetCycleType(G_CYC_1CYCLE), gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2), gsSPDisplayList(Entity_ScriptSpring_LoadTexture2), gsSPClearGeometryMode(G_CULL_BACK | G_LIGHTING), gsSPSetGeometryMode(G_SHADING_SMOOTH), gsSPVertex(D_0A000000_E657A0, 18, 0), gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0), gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0), gsSP2Triangles(5, 4, 6, 0, 5, 6, 7, 0), gsSP2Triangles(8, 9, 1, 0, 8, 1, 0, 0), gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0), gsSP2Triangles(12, 13, 11, 0, 12, 11, 10, 0), gsSP2Triangles(14, 15, 16, 0, 14, 16, 17, 0), gsSP2Triangles(7, 6, 15, 0, 7, 15, 14, 0), gsSPVertex(&D_0A000000_E657A0[18], 22, 0), gsSP2Triangles(0, 1, 2, 0, 3, 4, 1, 0), gsSP2Triangles(5, 6, 7, 0, 8, 9, 7, 0), gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0), gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0), gsSPEndDisplayList(), };