139 lines
6.7 KiB
C
139 lines
6.7 KiB
C
#include "pc/rom_assets.h"
|
|
// Springboard (unused)
|
|
|
|
// 0x05000000
|
|
static const Lights1 springboard_seg5_lights_05000000 = gdSPDefLights1(
|
|
0x3f, 0x3f, 0x3f,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x05000018
|
|
ROM_ASSET_LOAD_TEXTURE(springboard_seg5_texture_05000018, "actors/springboard/springboard_top_unused.rgba16.inc.c", 0x00165a50, 4471, 0x00000018, 2048);
|
|
|
|
// 0x05000818
|
|
ROM_ASSET_LOAD_TEXTURE(springboard_seg5_texture_05000818, "actors/springboard/springboard_base_unused.rgba16.inc.c", 0x00165a50, 4471, 0x00000818, 2048);
|
|
|
|
// 0x05001018
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001018, 0x00165a50, 4471, 0x00001018, 256);
|
|
|
|
// 0x05001118
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001118, 0x00165a50, 4471, 0x00001118, 240);
|
|
|
|
// 0x05001208
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001208, 0x00165a50, 4471, 0x00001208, 176);
|
|
|
|
// 0x050012B8
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_050012B8, 0x00165a50, 4471, 0x000012b8, 240);
|
|
|
|
// 0x050013A8
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_050013A8, 0x00165a50, 4471, 0x000013a8, 176);
|
|
|
|
// 0x05001458
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001458, 0x00165a50, 4471, 0x00001458, 256);
|
|
|
|
// 0x05001558
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001558, 0x00165a50, 4471, 0x00001558, 256);
|
|
|
|
// 0x05001658
|
|
ROM_ASSET_LOAD_VTX(springboard_seg5_vertex_05001658, 0x00165a50, 4471, 0x00001658, 96);
|
|
|
|
// 0x050016B8 - 0x05001800
|
|
const Gfx springboard_checkerboard_seg5_dl_050016B8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
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),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
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),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000018),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&springboard_seg5_lights_05000000.l, 1),
|
|
gsSPLight(&springboard_seg5_lights_05000000.a, 2),
|
|
gsSPVertex(springboard_seg5_vertex_05001018, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 10, 12, 0x0),
|
|
gsSP2Triangles(13, 12, 14, 0x0, 3, 15, 4, 0x0),
|
|
gsSPVertex(springboard_seg5_vertex_05001118, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 4, 6, 5, 0x0, 0, 2, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP1Triangle(11, 13, 14, 0x0),
|
|
gsSPVertex(springboard_seg5_vertex_05001208, 11, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 0, 2, 6, 0x0, 7, 8, 9, 0x0),
|
|
gsSP1Triangle( 7, 9, 10, 0x0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x05001800 - 0x05001900
|
|
const Gfx springboard_spring_seg5_dl_05001800[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
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),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
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),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000818),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&springboard_seg5_lights_05000000.l, 1),
|
|
gsSPLight(&springboard_seg5_lights_05000000.a, 2),
|
|
gsSPVertex(springboard_seg5_vertex_050012B8, 15, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 5, 6, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP1Triangle(11, 13, 14, 0x0),
|
|
gsSPVertex(springboard_seg5_vertex_050013A8, 11, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
|
|
gsSP1Triangle( 0, 10, 1, 0x0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x05001900 - 0x05001A28
|
|
const Gfx springboard_checkerboard_seg5_dl_05001900[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
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),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPTileSync(),
|
|
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),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, springboard_seg5_texture_05000018),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&springboard_seg5_lights_05000000.l, 1),
|
|
gsSPLight(&springboard_seg5_lights_05000000.a, 2),
|
|
gsSPVertex(springboard_seg5_vertex_05001458, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 5, 11, 7, 0x0),
|
|
gsSP2Triangles( 8, 12, 9, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(springboard_seg5_vertex_05001558, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 6, 7, 8, 0x0, 3, 9, 4, 0x0),
|
|
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
|
|
gsSPVertex(springboard_seg5_vertex_05001658, 6, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|