Path: blob/master/levels/castle_inside/areas/1/22/model.inc.c
7862 views
static const Vtx dl_castle_aquarium_light_vertex_group_1[] = {1{{{ 3385, 358, -1631}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},2{{{ 3060, 307, -1305}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},3{{{ 3385, 768, -1631}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},4{{{ 3174, 307, -1279}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},5{{{ 2355, 768, -1740}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},6{{{ 2355, 307, -1279}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},7{{{ 3174, 768, -1740}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},8{{{ 3174, 307, -1689}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},9{{{ 3174, 358, -1740}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},10{{{ 2355, 358, -1740}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},11{{{ 2355, 307, -1689}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},12{{{ 3784, 307, -581}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},13{{{ 4109, 768, -907}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},14{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},15{{{ 3349, 307, 1135}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},16{{{ 4073, 307, 411}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},17};1819static const Vtx dl_castle_aquarium_light_vertex_group_2[] = {20{{{ 3385, 358, -1631}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},21{{{ 3349, 307, -1595}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},22{{{ 3060, 307, -1305}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},23{{{ 4109, 768, -907}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},24{{{ 3784, 307, -581}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},25{{{ 4073, 307, -871}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},26{{{ 4109, 358, -907}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},27{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},28{{{ 4073, 307, 411}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},29{{{ 4109, 358, 447}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},30{{{ 3784, 307, 121}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},31{{{ 4109, 768, 447}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},32{{{ 2355, 307, 1229}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},33{{{ 2355, 358, 1280}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},34{{{ 2355, 768, 1280}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},35{{{ 3060, 307, 846}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},36};3738static const Vtx dl_castle_aquarium_light_vertex_group_3[] = {39{{{ 4109, 768, 447}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},40{{{ 3060, 307, 846}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},41{{{ 3385, 768, 1171}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},42{{{ 3385, 358, 1171}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},43{{{ 3349, 307, 1135}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},44{{{ 3174, 307, 1229}, 0, { 990, 422}, {0xbb, 0xc7, 0xff, 0x80}}},45{{{ 3174, 358, 1280}, 0, { 990, 536}, {0xbb, 0xc7, 0xff, 0x80}}},46{{{ 2355, 358, 1280}, 0, { 0, 536}, {0xbb, 0xc7, 0xff, 0x80}}},47{{{ 3174, 307, 819}, 0, { 990, 0}, {0xbb, 0xc7, 0xff, 0x80}}},48{{{ 2355, 307, 1229}, 0, { 0, 422}, {0xbb, 0xc7, 0xff, 0x80}}},49{{{ 3174, 768, 1280}, 0, { 990, 990}, {0xbb, 0xc7, 0xff, 0x80}}},50{{{ 2355, 768, 1280}, 0, { 0, 990}, {0xbb, 0xc7, 0xff, 0x80}}},51{{{ 2355, 307, 819}, 0, { 0, 0}, {0xbb, 0xc7, 0xff, 0x80}}},52};5354static const Gfx dl_castle_aquarium_light_model[] = {55gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_16b, 1, texture_castle_light),56gsDPLoadSync(),57gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),58gsSPVertex(dl_castle_aquarium_light_vertex_group_1, 16, 0),59gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),60gsSP2Triangles( 3, 6, 4, 0x0, 7, 6, 3, 0x0),61gsSP2Triangles( 7, 8, 6, 0x0, 5, 4, 9, 0x0),62gsSP2Triangles( 5, 9, 10, 0x0, 10, 9, 8, 0x0),63gsSP2Triangles(10, 8, 7, 0x0, 2, 1, 11, 0x0),64gsSP2Triangles( 2, 11, 12, 0x0, 13, 14, 15, 0x0),65gsSPVertex(dl_castle_aquarium_light_vertex_group_2, 16, 0),66gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),67gsSP2Triangles( 3, 5, 6, 0x0, 6, 1, 0, 0x0),68gsSP2Triangles( 6, 5, 1, 0x0, 7, 8, 9, 0x0),69gsSP2Triangles( 9, 10, 11, 0x0, 9, 8, 10, 0x0),70gsSP2Triangles(12, 13, 14, 0x0, 11, 10, 15, 0x0),71gsSPVertex(dl_castle_aquarium_light_vertex_group_3, 13, 0),72gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),73gsSP2Triangles( 1, 4, 3, 0x0, 5, 6, 7, 0x0),74gsSP2Triangles( 8, 6, 5, 0x0, 5, 7, 9, 0x0),75gsSP2Triangles( 8, 10, 6, 0x0, 9, 11, 12, 0x0),76gsSP2Triangles(12, 10, 8, 0x0, 12, 11, 10, 0x0),77gsSPEndDisplayList(),78};7980// 0x07038240 - 0x070382B081const Gfx dl_castle_aquarium_light[] = {82gsDPPipeSync(),83gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),84gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),85gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),86gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),87gsDPTileSync(),88gsDPSetTile(G_IM_FMT_IA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD),89gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),90gsSPDisplayList(dl_castle_aquarium_light_model),91gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),92gsDPPipeSync(),93gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),94gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),95gsSPEndDisplayList(),96};979899