sm64coopdx/levels/ccm/areas/1/8/model.inc.c

65 lines
2.7 KiB
C

#include "pc/rom_assets.h"
// 0x0700F800 - 0x0700F818
static const Lights1 ccm_seg7_lights_0700F800 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0700F818 - 0x0700F878
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700F818, 0x00383950, 74560, 0x0000f818, 96);
// 0x0700F878 - 0x0700F968
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700F878, 0x00383950, 74560, 0x0000f878, 240);
// 0x0700F968 - 0x0700FA18
ROM_ASSET_LOAD_VTX(ccm_seg7_vertex_0700F968, 0x00383950, 74560, 0x0000f968, 176);
// 0x0700FA18 - 0x0700FA70
static const Gfx ccm_seg7_dl_0700FA18[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, snow_09008000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPLight(&ccm_seg7_lights_0700F800.l, 1),
gsSPLight(&ccm_seg7_lights_0700F800.a, 2),
gsSPVertex(ccm_seg7_vertex_0700F818, 6, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 3, 1, 0x0),
gsSP2Triangles( 0, 2, 4, 0x0, 0, 4, 5, 0x0),
gsSPEndDisplayList(),
};
// 0x0700FA70 - 0x0700FB00
static const Gfx ccm_seg7_dl_0700FA70[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, ccm_seg7_texture_07001900),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(ccm_seg7_vertex_0700F878, 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(ccm_seg7_vertex_0700F968, 11, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 7, 8, 0x0, 6, 9, 7, 0x0),
gsSP1Triangle( 0, 2, 10, 0x0),
gsSPEndDisplayList(),
};
// 0x0700FB00 - 0x0700FB78
const Gfx ccm_seg7_dl_0700FB00[] = {
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(ccm_seg7_dl_0700FA18),
gsSPDisplayList(ccm_seg7_dl_0700FA70),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_SHADING_SMOOTH),
gsSPEndDisplayList(),
};