mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 15:03:01 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
332 lines
14 KiB
C
332 lines
14 KiB
C
#include "pc/rom_assets.h"
|
|
// Scuttlebug
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 scuttlebug_lights_unused1 = gdSPDefLights1(
|
|
0x2c, 0x00, 0x00,
|
|
0xb2, 0x00, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// Unreferenced light group
|
|
UNUSED static const Lights1 scuttlebug_lights_unused2 = gdSPDefLights1(
|
|
0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06010108
|
|
ROM_ASSET_LOAD_TEXTURE(scuttlebug_seg6_texture_06010108, "actors/scuttlebug/scuttlebug_eye.rgba16.inc.c", 0x001e7ee0, 40011, 0x00010108, 2048);
|
|
|
|
// 0x06010908
|
|
ROM_ASSET_LOAD_TEXTURE(scuttlebug_seg6_texture_06010908, "actors/scuttlebug/scuttlebug_left_side.rgba16.inc.c", 0x001e7ee0, 40011, 0x00010908, 4096);
|
|
|
|
// 0x06011908
|
|
ROM_ASSET_LOAD_TEXTURE(scuttlebug_seg6_texture_06011908, "actors/scuttlebug/scuttlebug_right_side.rgba16.inc.c", 0x001e7ee0, 40011, 0x00011908, 4096);
|
|
|
|
// 0x06012908
|
|
ROM_ASSET_LOAD_TEXTURE(scuttlebug_seg6_texture_06012908, "actors/scuttlebug/scuttlebug_iris.rgba16.inc.c", 0x001e7ee0, 40011, 0x00012908, 2048);
|
|
|
|
// 0x06013108
|
|
ROM_ASSET_LOAD_TEXTURE(scuttlebug_seg6_texture_06013108, "actors/scuttlebug/scuttlebug_leg.rgba16.inc.c", 0x001e7ee0, 40011, 0x00013108, 2048);
|
|
|
|
// 0x06013908
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013908, 0x001e7ee0, 40011, 0x00013908, 64);
|
|
|
|
// 0x06013948
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013948, 0x001e7ee0, 40011, 0x00013948, 64);
|
|
|
|
// 0x06013988 - 0x060139C0
|
|
const Gfx scuttlebug_seg6_dl_06013988[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06010908),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013908, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x060139C0 - 0x060139F8
|
|
const Gfx scuttlebug_seg6_dl_060139C0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06011908),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013948, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x060139F8 - 0x06013A70
|
|
const Gfx scuttlebug_seg6_dl_060139F8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
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, 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(scuttlebug_seg6_dl_06013988),
|
|
gsSPDisplayList(scuttlebug_seg6_dl_060139C0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013A70
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013A70, 0x001e7ee0, 40011, 0x00013a70, 64);
|
|
|
|
// 0x06013AB0 - 0x06013AE8
|
|
const Gfx scuttlebug_seg6_dl_06013AB0[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06010108),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013A70, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013AE8 - 0x06013B58
|
|
const Gfx scuttlebug_seg6_dl_06013AE8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
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(scuttlebug_seg6_dl_06013AB0),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013B58
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013B58, 0x001e7ee0, 40011, 0x00013a70, 64);
|
|
|
|
// 0x06013B98 - 0x06013BD0
|
|
const Gfx scuttlebug_seg6_dl_06013B98[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06010108),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013B58, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013BD0 - 0x06013C40
|
|
const Gfx scuttlebug_seg6_dl_06013BD0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
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(scuttlebug_seg6_dl_06013B98),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013C40
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013C40, 0x001e7ee0, 40011, 0x00013c40, 64);
|
|
|
|
// 0x06013C80 - 0x06013CB8
|
|
const Gfx scuttlebug_seg6_dl_06013C80[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06012908),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013C40, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013CB8 - 0x06013D28
|
|
const Gfx scuttlebug_seg6_dl_06013CB8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
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(scuttlebug_seg6_dl_06013C80),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013D28
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013D28, 0x001e7ee0, 40011, 0x00013d28, 64);
|
|
|
|
// 0x06013D68 - 0x06013DA0
|
|
const Gfx scuttlebug_seg6_dl_06013D68[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06012908),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013D28, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013DA0 - 0x06013E10
|
|
const Gfx scuttlebug_seg6_dl_06013DA0[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
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(scuttlebug_seg6_dl_06013D68),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06013E10
|
|
static const Lights1 scuttlebug_seg6_lights_06013E10 = gdSPDefLights1(
|
|
0x33, 0x22, 0x01,
|
|
0xcf, 0x89, 0x06, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x06013E28
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013E28, 0x001e7ee0, 40011, 0x00013e28, 256);
|
|
|
|
// 0x06013F28
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06013F28, 0x001e7ee0, 40011, 0x00013f28, 160);
|
|
|
|
// 0x06013FC8 - 0x060140F0
|
|
const Gfx scuttlebug_seg6_dl_06013FC8[] = {
|
|
gsSPLight(&scuttlebug_seg6_lights_06013E10.l, 1),
|
|
gsSPLight(&scuttlebug_seg6_lights_06013E10.a, 2),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013E28, 16, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
|
|
gsSP2Triangles( 5, 6, 7, 0x0, 5, 4, 6, 0x0),
|
|
gsSP2Triangles( 8, 5, 7, 0x0, 3, 5, 8, 0x0),
|
|
gsSP2Triangles( 9, 10, 4, 0x0, 3, 9, 4, 0x0),
|
|
gsSP2Triangles(10, 6, 4, 0x0, 10, 11, 6, 0x0),
|
|
gsSP2Triangles(11, 7, 6, 0x0, 12, 7, 11, 0x0),
|
|
gsSP2Triangles(12, 8, 7, 0x0, 12, 9, 3, 0x0),
|
|
gsSP2Triangles( 3, 8, 12, 0x0, 11, 10, 9, 0x0),
|
|
gsSP2Triangles(11, 9, 12, 0x0, 13, 14, 0, 0x0),
|
|
gsSP2Triangles( 0, 14, 1, 0x0, 15, 13, 0, 0x0),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06013F28, 10, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0),
|
|
gsSP2Triangles( 4, 2, 3, 0x0, 5, 4, 6, 0x0),
|
|
gsSP2Triangles( 6, 4, 7, 0x0, 4, 3, 7, 0x0),
|
|
gsSP2Triangles( 1, 8, 3, 0x0, 8, 7, 3, 0x0),
|
|
gsSP2Triangles( 8, 1, 0, 0x0, 8, 0, 9, 0x0),
|
|
gsSP2Triangles( 9, 7, 8, 0x0, 7, 9, 6, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x060140F0 - 0x06014110
|
|
const Gfx scuttlebug_seg6_dl_060140F0[] = {
|
|
gsDPPipeSync(),
|
|
gsSPDisplayList(scuttlebug_seg6_dl_06013FC8),
|
|
gsDPPipeSync(),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06014110
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_06014110, 0x001e7ee0, 40011, 0x00014110, 64);
|
|
|
|
// 0x06014150 - 0x06014188
|
|
const Gfx scuttlebug_seg6_dl_06014150[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06013108),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_06014110, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06014188 - 0x060141F8
|
|
const Gfx scuttlebug_seg6_dl_06014188[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
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_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(scuttlebug_seg6_dl_06014150),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x060141F8
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_060141F8, 0x001e7ee0, 40011, 0x000141f8, 64);
|
|
|
|
// 0x06014238 - 0x06014270
|
|
const Gfx scuttlebug_seg6_dl_06014238[] = {
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, scuttlebug_seg6_texture_06013108),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
|
|
gsSPVertex(scuttlebug_seg6_vertex_060141F8, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 0, 2, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06014270 - 0x060142E0
|
|
const Gfx scuttlebug_seg6_dl_06014270[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
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_CLAMP, 5, G_TX_NOLOD),
|
|
gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
|
|
gsSPDisplayList(scuttlebug_seg6_dl_06014238),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x060142E0
|
|
static const Lights1 scuttlebug_seg6_lights_060142E0 = gdSPDefLights1(
|
|
0x26, 0x05, 0x05,
|
|
0x99, 0x16, 0x16, 0x28, 0x28, 0x28
|
|
);
|
|
|
|
// 0x060142F8
|
|
ROM_ASSET_LOAD_VTX(scuttlebug_seg6_vertex_060142F8, 0x001e7ee0, 40011, 0x000142f8, 64);
|
|
|
|
// 0x06014338 - 0x06014378
|
|
const Gfx scuttlebug_seg6_dl_06014338[] = {
|
|
gsSPLight(&scuttlebug_seg6_lights_060142E0.l, 1),
|
|
gsSPLight(&scuttlebug_seg6_lights_060142E0.a, 2),
|
|
gsSPVertex(scuttlebug_seg6_vertex_060142F8, 4, 0),
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 3, 2, 1, 0x0),
|
|
gsSP2Triangles( 2, 3, 0, 0x0, 1, 0, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x06014378 - 0x06014398
|
|
const Gfx scuttlebug_seg6_dl_06014378[] = {
|
|
gsDPPipeSync(),
|
|
gsSPDisplayList(scuttlebug_seg6_dl_06014338),
|
|
gsDPPipeSync(),
|
|
gsSPEndDisplayList(),
|
|
};
|