model.inc.c (4795B)
1 // Book (Pushable Book) 2 3 // This actor file requires including actor bookend because of bookend_seg5_texture_05000C60 4 5 // 0x05002558 6 static const Lights1 book_seg5_lights_05002558 = gdSPDefLights1( 7 0x7f, 0x7f, 0x7f, 8 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 9 ); 10 11 // 0x05002570 12 ALIGNED8 static const Texture book_seg5_texture_05002570[] = { 13 #include "actors/book/book_cover.rgba16.inc.c" 14 }; 15 16 // 0x05002D70 17 static const Vtx book_seg5_vertex_05002D70[] = { 18 {{{ -9, 31, -50}, 0, { 990, 0}, {0x00, 0x7f, 0x00, 0xff}}}, 19 {{{ 10, 31, 0}, 0, { 0, 990}, {0x00, 0x7f, 0x00, 0xff}}}, 20 {{{ 10, 31, -50}, 0, { 0, 0}, {0x00, 0x7f, 0x00, 0xff}}}, 21 {{{ -9, 31, 0}, 0, { 479, 990}, {0x00, 0x7f, 0x00, 0xff}}}, 22 {{{ 10, -30, -50}, 0, { 0, 990}, {0x00, 0x81, 0x00, 0xff}}}, 23 {{{ 10, -30, 0}, 0, { 0, 0}, {0x00, 0x81, 0x00, 0xff}}}, 24 {{{ -9, -30, 0}, 0, { 479, 0}, {0x00, 0x81, 0x00, 0xff}}}, 25 {{{ -9, -30, -50}, 0, { 990, 990}, {0x00, 0x81, 0x00, 0xff}}}, 26 {{{ 10, -30, -50}, 0, { 0, 990}, {0x00, 0x00, 0x81, 0xff}}}, 27 {{{ -9, 31, -50}, 0, { 990, 0}, {0x00, 0x00, 0x81, 0xff}}}, 28 {{{ 10, 31, -50}, 0, { 0, 0}, {0x00, 0x00, 0x81, 0xff}}}, 29 {{{ -9, -30, -50}, 0, { 990, 990}, {0x00, 0x00, 0x81, 0xff}}}, 30 }; 31 32 // 0x05002E30 33 static const Vtx book_seg5_vertex_05002E30[] = { 34 {{{ 10, 31, 0}, 0, { 990, 0}, {0x00, 0x00, 0x7f, 0xff}}}, 35 {{{ -9, 31, 0}, 0, { 0, 0}, {0x00, 0x00, 0x7f, 0xff}}}, 36 {{{ -9, -30, 0}, 0, { 0, 990}, {0x00, 0x00, 0x7f, 0xff}}}, 37 {{{ 10, -30, 0}, 0, { 990, 990}, {0x00, 0x00, 0x7f, 0xff}}}, 38 {{{ -9, -30, -50}, 0, { 990, 990}, {0x81, 0x00, 0x00, 0xff}}}, 39 {{{ -9, 31, 0}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}}, 40 {{{ -9, 31, -50}, 0, { 990, 0}, {0x81, 0x00, 0x00, 0xff}}}, 41 {{{ -9, -30, 0}, 0, { 0, 990}, {0x81, 0x00, 0x00, 0xff}}}, 42 {{{ 10, 31, -50}, 0, { 990, 0}, {0x7f, 0x00, 0x00, 0xff}}}, 43 {{{ 10, 31, 0}, 0, { 0, 0}, {0x7f, 0x00, 0x00, 0xff}}}, 44 {{{ 10, -30, 0}, 0, { 0, 990}, {0x7f, 0x00, 0x00, 0xff}}}, 45 {{{ 10, -30, -50}, 0, { 990, 990}, {0x7f, 0x00, 0x00, 0xff}}}, 46 }; 47 48 // 0x05002EF0 - 0x05002F58 49 const Gfx book_seg5_dl_05002EF0[] = { 50 gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bookend_seg5_texture_05000C60), 51 gsDPLoadSync(), 52 gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(16, G_IM_SIZ_16b_BYTES)), 53 gsSPLight(&book_seg5_lights_05002558.l, 1), 54 gsSPLight(&book_seg5_lights_05002558.a, 2), 55 gsSPVertex(book_seg5_vertex_05002D70, 12, 0), 56 gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0), 57 gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0), 58 gsSP2Triangles( 8, 9, 10, 0x0, 8, 11, 9, 0x0), 59 gsSPEndDisplayList(), 60 }; 61 62 // 0x05002F58 - 0x05002FB0 63 const Gfx book_seg5_dl_05002F58[] = { 64 gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, book_seg5_texture_05002570), 65 gsDPLoadSync(), 66 gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), 67 gsSPVertex(book_seg5_vertex_05002E30, 12, 0), 68 gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), 69 gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), 70 gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0), 71 gsSPEndDisplayList(), 72 }; 73 74 // 0x05002FB0 - 0x05003040 75 const Gfx book_seg5_dl_05002FB0[] = { 76 gsDPPipeSync(), 77 gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), 78 gsSPClearGeometryMode(G_SHADING_SMOOTH), 79 gsDPSetTile(G_IM_FMT_RGBA, 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), 80 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), 81 gsDPTileSync(), 82 gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 4, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 4, G_TX_NOLOD), 83 gsDPSetTileSize(0, 0, 0, (16 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), 84 gsSPDisplayList(book_seg5_dl_05002EF0), 85 gsDPTileSync(), 86 gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD), 87 gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), 88 gsSPDisplayList(book_seg5_dl_05002F58), 89 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), 90 gsDPPipeSync(), 91 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), 92 gsSPSetGeometryMode(G_SHADING_SMOOTH), 93 gsSPEndDisplayList(), 94 };