sm64coopdx/levels/bits/areas/1/22/model.inc.c

102 lines
4.2 KiB
C
Raw Normal View History

#include "pc/rom_assets.h"
2019-12-02 02:52:53 +00:00
// 0x07012DB0 - 0x07012DC8
static const Lights1 bits_seg7_lights_07012DB0 = gdSPDefLights1(
0x58, 0x5f, 0x7d,
0xb1, 0xbf, 0xfa, 0x28, 0x28, 0x28
);
2019-11-03 19:36:27 +00:00
2019-12-02 02:52:53 +00:00
// 0x07012DC8 - 0x07012DE0
static const Lights1 bits_seg7_lights_07012DC8 = gdSPDefLights1(
0x4c, 0x46, 0x6c,
0x98, 0x8c, 0xd8, 0x28, 0x28, 0x28
);
2019-11-03 19:36:27 +00:00
2019-12-02 02:52:53 +00:00
// 0x07012DE0 - 0x07012DF8
static const Lights1 bits_seg7_lights_07012DE0 = gdSPDefLights1(
0x59, 0x32, 0x7f,
0xb2, 0x65, 0xff, 0x28, 0x28, 0x28
);
2019-11-03 19:36:27 +00:00
// 0x07012DF8 - 0x07012E78
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07012DF8, 0x0046c3a0, 47442, 0x00012df8, 128);
2019-11-03 19:36:27 +00:00
// 0x07012E78 - 0x07012F58
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07012E78, 0x0046c3a0, 47442, 0x00012e78, 224);
2019-11-03 19:36:27 +00:00
// 0x07012F58 - 0x07013058
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07012F58, 0x0046c3a0, 47442, 0x00012f58, 256);
2019-11-03 19:36:27 +00:00
// 0x07013058 - 0x070130F8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_07013058, 0x0046c3a0, 47442, 0x00013058, 160);
2019-11-03 19:36:27 +00:00
// 0x070130F8 - 0x070131E8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_070130F8, 0x0046c3a0, 47442, 0x000130f8, 240);
2019-11-03 19:36:27 +00:00
// 0x070131E8 - 0x070132D8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_070131E8, 0x0046c3a0, 47442, 0x000131e8, 240);
2019-11-03 19:36:27 +00:00
// 0x070132D8 - 0x070133B8
ROM_ASSET_LOAD_VTX(bits_seg7_vertex_070132D8, 0x0046c3a0, 47442, 0x000132d8, 224);
2019-11-03 19:36:27 +00:00
// 0x070133B8 - 0x070135A0
static const Gfx bits_seg7_dl_070133B8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, sky_09001800),
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(&bits_seg7_lights_07012DB0.l, 1),
gsSPLight(&bits_seg7_lights_07012DB0.a, 2),
2019-11-03 19:36:27 +00:00
gsSPVertex(bits_seg7_vertex_07012DF8, 8, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 0, 3, 4, 0x0, 0, 5, 6, 0x0),
gsSP2Triangles( 0, 7, 1, 0x0, 0, 4, 5, 0x0),
2019-12-02 02:52:53 +00:00
gsSPLight(&bits_seg7_lights_07012DC8.l, 1),
gsSPLight(&bits_seg7_lights_07012DC8.a, 2),
2019-11-03 19:36:27 +00:00
gsSPVertex(bits_seg7_vertex_07012E78, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 3, 5, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 10, 12, 0x0),
gsSPVertex(bits_seg7_vertex_07012F58, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles(10, 11, 12, 0x0, 13, 14, 15, 0x0),
gsSPVertex(bits_seg7_vertex_07013058, 10, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 8, 9, 0x0),
2019-12-02 02:52:53 +00:00
gsSPLight(&bits_seg7_lights_07012DE0.l, 1),
gsSPLight(&bits_seg7_lights_07012DE0.a, 2),
2019-11-03 19:36:27 +00:00
gsSPVertex(bits_seg7_vertex_070130F8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 7, 10, 11, 0x0),
gsSP2Triangles( 7, 11, 12, 0x0, 7, 12, 13, 0x0),
gsSP1Triangle( 7, 14, 8, 0x0),
gsSPVertex(bits_seg7_vertex_070131E8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
gsSP1Triangle(12, 13, 14, 0x0),
gsSPVertex(bits_seg7_vertex_070132D8, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSPEndDisplayList(),
};
// 0x070135A0 - 0x07013610
const Gfx bits_seg7_dl_070135A0[] = {
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),
gsSPDisplayList(bits_seg7_dl_070133B8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};