model.inc.c (5190B)
1 // Checkerboard Platform 2 3 // 0x0800C828 4 static const Lights1 checkerboard_platform_seg8_lights_0800C828 = gdSPDefLights1( 5 0x3f, 0x3f, 0x3f, 6 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 7 ); 8 9 // 0x0800C840 10 ALIGNED8 static const Texture checkerboard_platform_seg8_texture_0800C840[] = { 11 #include "actors/checkerboard_platform/checkerboard_platform_side.rgba16.inc.c" 12 }; 13 14 // 0x0800CC40 15 ALIGNED8 static const Texture checkerboard_platform_seg8_texture_0800CC40[] = { 16 #include "actors/checkerboard_platform/checkerboard_platform.rgba16.inc.c" 17 }; 18 19 // 0x0800D440 20 static const Vtx checkerboard_platform_seg8_vertex_0800D440[] = { 21 {{{ -255, -25, 154}, 0, { 1504, 480}, {0x81, 0x00, 0x00, 0xff}}}, 22 {{{ -255, 26, 154}, 0, { 1504, 0}, {0x81, 0x00, 0x00, 0xff}}}, 23 {{{ -255, 26, -153}, 0, { 0, 0}, {0x81, 0x00, 0x00, 0xff}}}, 24 {{{ -255, -25, -153}, 0, { 0, 480}, {0x81, 0x00, 0x00, 0xff}}}, 25 {{{ 256, -25, -153}, 0, { 1504, 480}, {0x7f, 0x00, 0x00, 0xff}}}, 26 {{{ 256, 26, 154}, 0, { 0, 0}, {0x7f, 0x00, 0x00, 0xff}}}, 27 {{{ 256, -25, 154}, 0, { 0, 480}, {0x7f, 0x00, 0x00, 0xff}}}, 28 {{{ 256, 26, -153}, 0, { 1504, 0}, {0x7f, 0x00, 0x00, 0xff}}}, 29 }; 30 31 // 0x0800D4C0 32 static const Vtx checkerboard_platform_seg8_vertex_0800D4C0[] = { 33 {{{ 256, -25, 154}, 0, { 2528, 992}, {0x00, 0x81, 0x00, 0xff}}}, 34 {{{ -255, -25, -153}, 0, { 0, -512}, {0x00, 0x81, 0x00, 0xff}}}, 35 {{{ 256, -25, -153}, 0, { 2528, -512}, {0x00, 0x81, 0x00, 0xff}}}, 36 {{{ 256, 26, -153}, 0, { 2528, -512}, {0x00, 0x7f, 0x00, 0xff}}}, 37 {{{ -255, 26, 154}, 0, { 0, 992}, {0x00, 0x7f, 0x00, 0xff}}}, 38 {{{ 256, 26, 154}, 0, { 2528, 992}, {0x00, 0x7f, 0x00, 0xff}}}, 39 {{{ -255, 26, -153}, 0, { 0, -512}, {0x00, 0x7f, 0x00, 0xff}}}, 40 {{{ -255, -25, -153}, 0, { 2528, 480}, {0x00, 0x00, 0x81, 0xff}}}, 41 {{{ -255, 26, -153}, 0, { 2528, 0}, {0x00, 0x00, 0x81, 0xff}}}, 42 {{{ 256, 26, -153}, 0, { 0, 0}, {0x00, 0x00, 0x81, 0xff}}}, 43 {{{ 256, -25, -153}, 0, { 0, 480}, {0x00, 0x00, 0x81, 0xff}}}, 44 {{{ 256, -25, 154}, 0, { 2528, 480}, {0x00, 0x00, 0x7f, 0xff}}}, 45 {{{ -255, 26, 154}, 0, { 0, 0}, {0x00, 0x00, 0x7f, 0xff}}}, 46 {{{ -255, -25, 154}, 0, { 0, 480}, {0x00, 0x00, 0x7f, 0xff}}}, 47 {{{ 256, 26, 154}, 0, { 2528, 0}, {0x00, 0x00, 0x7f, 0xff}}}, 48 {{{ -255, -25, 154}, 0, { 0, 992}, {0x00, 0x81, 0x00, 0xff}}}, 49 }; 50 51 // 0x0800D5C0 - 0x0800D618 52 const Gfx checkerboard_platform_seg8_dl_0800D5C0[] = { 53 gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, checkerboard_platform_seg8_texture_0800C840), 54 gsDPLoadSync(), 55 gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 16 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), 56 gsSPLight(&checkerboard_platform_seg8_lights_0800C828.l, 1), 57 gsSPLight(&checkerboard_platform_seg8_lights_0800C828.a, 2), 58 gsSPVertex(checkerboard_platform_seg8_vertex_0800D440, 8, 0), 59 gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0), 60 gsSP2Triangles( 4, 5, 6, 0x0, 4, 7, 5, 0x0), 61 gsSPEndDisplayList(), 62 }; 63 64 // 0x0800D618 - 0x0800D680 65 const Gfx checkerboard_platform_seg8_dl_0800D618[] = { 66 gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, checkerboard_platform_seg8_texture_0800CC40), 67 gsDPLoadSync(), 68 gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)), 69 gsSPVertex(checkerboard_platform_seg8_vertex_0800D4C0, 16, 0), 70 gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0), 71 gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0), 72 gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0), 73 gsSP2Triangles(11, 14, 12, 0x0, 0, 15, 1, 0x0), 74 gsSPEndDisplayList(), 75 }; 76 77 // 0x0800D680 - 0x0800D710 78 const Gfx checkerboard_platform_seg8_dl_0800D680[] = { 79 gsDPPipeSync(), 80 gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB), 81 gsSPClearGeometryMode(G_SHADING_SMOOTH), 82 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), 83 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON), 84 gsDPTileSync(), 85 gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 4, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD), 86 gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (16 - 1) << G_TEXTURE_IMAGE_FRAC), 87 gsSPDisplayList(checkerboard_platform_seg8_dl_0800D5C0), 88 gsDPTileSync(), 89 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), 90 gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC), 91 gsSPDisplayList(checkerboard_platform_seg8_dl_0800D618), 92 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF), 93 gsDPPipeSync(), 94 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE), 95 gsSPSetGeometryMode(G_SHADING_SMOOTH), 96 gsSPEndDisplayList(), 97 }; 98