112 lines
4.8 KiB
C
112 lines
4.8 KiB
C
#include "pc/rom_assets.h"
|
|
// 0x0700BF90 - 0x0700BFA8
|
|
static const Lights1 ssl_seg7_lights_0700BF90 = gdSPDefLights1(
|
|
0x3f, 0x3f, 0x3f,
|
|
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x0700BFA8 - 0x0700C7A8
|
|
ROM_ASSET_LOAD_TEXTURE(ssl_seg7_texture_0700BFA8, "levels/ssl/8.rgba16.inc.c", 0x003e76b0, 82641, 0x0000bfa8, 2048);
|
|
|
|
// 0x0700C7A8 - 0x0700D7A8
|
|
ROM_ASSET_LOAD_TEXTURE(ssl_seg7_texture_0700C7A8, "levels/ssl/9.rgba16.inc.c", 0x003e76b0, 82641, 0x0000c7a8, 4096);
|
|
|
|
// 0x0700D7A8 - 0x0700E7A8
|
|
ROM_ASSET_LOAD_TEXTURE(ssl_seg7_texture_0700D7A8, "levels/ssl/10.rgba16.inc.c", 0x003e76b0, 82641, 0x0000d7a8, 4096);
|
|
|
|
// 0x0700E7A8 - 0x0700F7A8
|
|
ROM_ASSET_LOAD_TEXTURE(ssl_seg7_texture_0700E7A8, "levels/ssl/11.rgba16.inc.c", 0x003e76b0, 82641, 0x0000e7a8, 4096);
|
|
|
|
// 0x0700F7A8 - 0x0700F898
|
|
ROM_ASSET_LOAD_VTX(ssl_seg7_vertex_0700F7A8, 0x003e76b0, 82641, 0x0000f7a8, 240);
|
|
|
|
// 0x0700F898 - 0x0700F908
|
|
ROM_ASSET_LOAD_VTX(ssl_seg7_vertex_0700F898, 0x003e76b0, 82641, 0x0000f898, 112);
|
|
|
|
// 0x0700F908 - 0x0700FA08
|
|
ROM_ASSET_LOAD_VTX(ssl_seg7_vertex_0700F908, 0x003e76b0, 82641, 0x0000f908, 256);
|
|
|
|
// 0x0700FA08 - 0x0700FB08
|
|
ROM_ASSET_LOAD_VTX(ssl_seg7_vertex_0700FA08, 0x003e76b0, 82641, 0x0000fa08, 256);
|
|
|
|
// 0x0700FB08 - 0x0700FB48
|
|
ROM_ASSET_LOAD_VTX(ssl_seg7_vertex_0700FB08, 0x003e76b0, 82641, 0x0000fb08, 64);
|
|
|
|
// 0x0700FB48 - 0x0700FBD8
|
|
static const Gfx ssl_seg7_dl_0700FB48[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_0700BFA8),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPLight(&ssl_seg7_lights_0700BF90.l, 1),
|
|
gsSPLight(&ssl_seg7_lights_0700BF90.a, 2),
|
|
gsSPVertex(ssl_seg7_vertex_0700F7A8, 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, 14, 12, 0x0),
|
|
gsSPVertex(ssl_seg7_vertex_0700F898, 7, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP1Triangle( 0, 6, 1, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700FBD8 - 0x0700FC40
|
|
static const Gfx ssl_seg7_dl_0700FBD8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_0700C7A8),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(ssl_seg7_vertex_0700F908, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 3, 6, 4, 0x0, 7, 8, 9, 0x0),
|
|
gsSP2Triangles( 0, 2, 10, 0x0, 7, 9, 11, 0x0),
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 15, 13, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700FC40 - 0x0700FCA8
|
|
static const Gfx ssl_seg7_dl_0700FC40[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_0700E7A8),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(ssl_seg7_vertex_0700FA08, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
|
|
gsSP2Triangles( 8, 10, 14, 0x0, 11, 15, 12, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700FCA8 - 0x0700FCE0
|
|
static const Gfx ssl_seg7_dl_0700FCA8[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ssl_seg7_texture_0700D7A8),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(ssl_seg7_vertex_0700FB08, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0700FCE0 - 0x0700FD80
|
|
const Gfx ssl_seg7_dl_0700FCE0[] = {
|
|
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_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(ssl_seg7_dl_0700FB48),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 6, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (64 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(ssl_seg7_dl_0700FBD8),
|
|
gsSPDisplayList(ssl_seg7_dl_0700FC40),
|
|
gsSPDisplayList(ssl_seg7_dl_0700FCA8),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList(),
|
|
};
|