sm64coopdx/actors/bomb/model.inc.c

123 lines
5.1 KiB
C
Raw Normal View History

#include "pc/rom_assets.h"
2019-11-03 19:36:27 +00:00
// Bomb
// 0x06057AA8
2019-12-02 02:52:53 +00:00
static const Lights1 bomb_seg6_lights_06057AA8 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
2019-11-03 19:36:27 +00:00
// 0x06057AC0
ROM_ASSET_LOAD_TEXTURE(bomb_seg6_texture_06057AC0, "actors/bomb/bomb_left_side.rgba16.inc.c", 0x00188440, 199722, 0x00057c10, 4096);
2019-11-03 19:36:27 +00:00
// 0x06058AC0
ROM_ASSET_LOAD_TEXTURE(bomb_seg6_texture_06058AC0, "actors/bomb/bomb_right_side.rgba16.inc.c", 0x00188440, 199722, 0x00058c10, 4096);
2019-11-03 19:36:27 +00:00
// 0x06059AC0
ROM_ASSET_LOAD_TEXTURE(bomb_seg6_texture_06059AC0, "actors/bomb/bomb_spike.rgba16.inc.c", 0x00188440, 199722, 0x00059c10, 2048);
2019-11-03 19:36:27 +00:00
// 0x0605A2C0
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A2C0, 0x00188440, 199722, 0x0005a410, 64);
2019-11-03 19:36:27 +00:00
// 0x0605A300
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A300, 0x00188440, 199722, 0x0005a450, 64);
2019-11-03 19:36:27 +00:00
// 0x0605A340
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A340, 0x00188440, 199722, 0x0005a490, 240);
2019-11-03 19:36:27 +00:00
// 0x0605A430
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A430, 0x00188440, 199722, 0x0005a580, 240);
2019-11-03 19:36:27 +00:00
// 0x0605A520
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A520, 0x00188440, 199722, 0x0005a670, 240);
2019-11-03 19:36:27 +00:00
// 0x0605A610
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A610, 0x00188440, 199722, 0x0005a760, 240);
2019-11-03 19:36:27 +00:00
// 0x0605A700
ROM_ASSET_LOAD_VTX(bomb_seg6_vertex_0605A700, 0x00188440, 199722, 0x0005a850, 192);
2019-11-03 19:36:27 +00:00
// 0x0605A7C0 - 0x0605A7F8
const Gfx bomb_seg6_dl_0605A7C0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bomb_seg6_texture_06057AC0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bomb_seg6_vertex_0605A2C0, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0605A7F8 - 0x0605A830
const Gfx bomb_seg6_dl_0605A7F8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bomb_seg6_texture_06058AC0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 64 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(bomb_seg6_vertex_0605A300, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSPEndDisplayList(),
};
// 0x0605A830 - 0x0605A8A8
const Gfx bomb_seg6_dl_0605A830[] = {
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(bomb_seg6_dl_0605A7C0),
gsSPDisplayList(bomb_seg6_dl_0605A7F8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};
// 0x0605A8A8 - 0x0605A9C0
const Gfx bomb_seg6_dl_0605A8A8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bomb_seg6_texture_06059AC0),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
2019-12-02 02:52:53 +00:00
gsSPLight(&bomb_seg6_lights_06057AA8.l, 1),
gsSPLight(&bomb_seg6_lights_06057AA8.a, 2),
2019-11-03 19:36:27 +00:00
gsSPVertex(bomb_seg6_vertex_0605A340, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bomb_seg6_vertex_0605A430, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bomb_seg6_vertex_0605A520, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bomb_seg6_vertex_0605A610, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bomb_seg6_vertex_0605A700, 12, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 9, 10, 11, 0x0),
gsSPEndDisplayList(),
};
// 0x0605A9C0 - 0x0605AA20
const Gfx bomb_seg6_dl_0605A9C0[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
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),
gsSPDisplayList(bomb_seg6_dl_0605A8A8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};