mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-02 00:37:26 +00:00
170 lines
7.3 KiB
C
170 lines
7.3 KiB
C
Lights1 bob_dl_f3d_material_lights = gdSPDefLights1(
|
|
0x7F, 0x7F, 0x7F,
|
|
0xFE, 0xFE, 0xFE, 0x28, 0x28, 0x28);
|
|
|
|
Gfx bob_dl_custom_box_surface_rgba16_ci4_aligner[] = {gsSPEndDisplayList()};
|
|
u8 bob_dl_custom_box_surface_rgba16_ci4[] = {
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11, 0x11,
|
|
0x11, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
};
|
|
|
|
Gfx bob_dl_custom_box_surface_rgba16_ci4_pal_rgba16_aligner[] = {gsSPEndDisplayList()};
|
|
u8 bob_dl_custom_box_surface_rgba16_ci4_pal_rgba16[] = {
|
|
0x00, 0x01, 0x00, 0xff,
|
|
};
|
|
|
|
Vtx bob_dl_LevelGeometry_mesh_layer_1_vtx_0[24] = {
|
|
{{{1000, 0, -1000},0, {1008, -16},{0x0, 0x7F, 0x0, 0xFF}}},
|
|
{{{-1000, 0, -1000},0, {-16, -16},{0x0, 0x7F, 0x0, 0xFF}}},
|
|
{{{-1000, 0, 1000},0, {-16, 1008},{0x0, 0x7F, 0x0, 0xFF}}},
|
|
{{{1000, 0, 1000},0, {1008, 1008},{0x0, 0x7F, 0x0, 0xFF}}},
|
|
{{{1000, -2000, 1000},0, {1008, 1008},{0x0, 0x0, 0x7F, 0xFF}}},
|
|
{{{1000, 0, 1000},0, {1008, -16},{0x0, 0x0, 0x7F, 0xFF}}},
|
|
{{{-1000, 0, 1000},0, {-16, -16},{0x0, 0x0, 0x7F, 0xFF}}},
|
|
{{{-1000, -2000, 1000},0, {-16, 1008},{0x0, 0x0, 0x7F, 0xFF}}},
|
|
{{{-1000, -2000, 1000},0, {-16, 1008},{0x81, 0x0, 0x0, 0xFF}}},
|
|
{{{-1000, 0, 1000},0, {-16, -16},{0x81, 0x0, 0x0, 0xFF}}},
|
|
{{{-1000, 0, -1000},0, {1008, -16},{0x81, 0x0, 0x0, 0xFF}}},
|
|
{{{-1000, -2000, -1000},0, {1008, 1008},{0x81, 0x0, 0x0, 0xFF}}},
|
|
{{{-1000, -2000, -1000},0, {-16, -16},{0x0, 0x81, 0x0, 0xFF}}},
|
|
{{{1000, -2000, -1000},0, {1008, -16},{0x0, 0x81, 0x0, 0xFF}}},
|
|
{{{1000, -2000, 1000},0, {1008, 1008},{0x0, 0x81, 0x0, 0xFF}}},
|
|
{{{-1000, -2000, 1000},0, {-16, 1008},{0x0, 0x81, 0x0, 0xFF}}},
|
|
{{{1000, -2000, -1000},0, {1008, 1008},{0x7F, 0x0, 0x0, 0xFF}}},
|
|
{{{1000, 0, -1000},0, {1008, -16},{0x7F, 0x0, 0x0, 0xFF}}},
|
|
{{{1000, 0, 1000},0, {-16, -16},{0x7F, 0x0, 0x0, 0xFF}}},
|
|
{{{1000, -2000, 1000},0, {-16, 1008},{0x7F, 0x0, 0x0, 0xFF}}},
|
|
{{{-1000, -2000, -1000},0, {-16, 1008},{0x0, 0x0, 0x81, 0xFF}}},
|
|
{{{-1000, 0, -1000},0, {-16, -16},{0x0, 0x0, 0x81, 0xFF}}},
|
|
{{{1000, 0, -1000},0, {1008, -16},{0x0, 0x0, 0x81, 0xFF}}},
|
|
{{{1000, -2000, -1000},0, {1008, 1008},{0x0, 0x0, 0x81, 0xFF}}},
|
|
};
|
|
|
|
Gfx bob_dl_LevelGeometry_mesh_layer_1_tri_0[] = {
|
|
gsSPVertex(bob_dl_LevelGeometry_mesh_layer_1_vtx_0 + 0, 16, 0),
|
|
gsSP1Triangle(0, 1, 2, 0),
|
|
gsSP1Triangle(0, 2, 3, 0),
|
|
gsSP1Triangle(4, 5, 6, 0),
|
|
gsSP1Triangle(4, 6, 7, 0),
|
|
gsSP1Triangle(8, 9, 10, 0),
|
|
gsSP1Triangle(8, 10, 11, 0),
|
|
gsSP1Triangle(12, 13, 14, 0),
|
|
gsSP1Triangle(12, 14, 15, 0),
|
|
gsSPVertex(bob_dl_LevelGeometry_mesh_layer_1_vtx_0 + 16, 8, 0),
|
|
gsSP1Triangle(0, 1, 2, 0),
|
|
gsSP1Triangle(0, 2, 3, 0),
|
|
gsSP1Triangle(4, 5, 6, 0),
|
|
gsSP1Triangle(4, 6, 7, 0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx mat_bob_dl_f3d_material[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineLERP(TEXEL0, 0, SHADE, 0, 0, 0, 0, ENVIRONMENT, TEXEL0, 0, SHADE, 0, 0, 0, 0, ENVIRONMENT),
|
|
gsSPTexture(65535, 65535, 0, 0, 1),
|
|
gsDPSetTextureLUT(G_TT_RGBA16),
|
|
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, bob_dl_custom_box_surface_rgba16_ci4_pal_rgba16),
|
|
gsDPTileSync(),
|
|
gsDPSetTile(0, 0, 0, 256, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 0, 0),
|
|
gsDPLoadSync(),
|
|
gsDPLoadTLUTCmd(7, 1),
|
|
gsDPPipeSync(),
|
|
gsDPTileSync(),
|
|
gsDPSetTextureImage(G_IM_FMT_CI, G_IM_SIZ_16b, 1, bob_dl_custom_box_surface_rgba16_ci4),
|
|
gsDPSetTile(G_IM_FMT_CI, G_IM_SIZ_16b, 0, 0, 7, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, 0),
|
|
gsDPLoadSync(),
|
|
gsDPLoadBlock(7, 0, 0, 255, 1024),
|
|
gsDPPipeSync(),
|
|
gsDPSetTile(G_IM_FMT_CI, G_IM_SIZ_4b, 2, 0, 0, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, 0),
|
|
gsDPSetTileSize(0, 0, 0, 124, 124),
|
|
gsSPSetLights1(bob_dl_f3d_material_lights),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx mat_revert_bob_dl_f3d_material[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetTextureLUT(G_TT_NONE),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx bob_dl_LevelGeometry_mesh_layer_1[] = {
|
|
gsSPDisplayList(mat_bob_dl_f3d_material),
|
|
gsSPDisplayList(bob_dl_LevelGeometry_mesh_layer_1_tri_0),
|
|
gsSPDisplayList(mat_revert_bob_dl_f3d_material),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx bob_dl_material_revert_render_settings[] = {
|
|
gsDPPipeSync(),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPClearGeometryMode(G_TEXTURE_GEN),
|
|
gsDPSetCombineLERP(0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT, 0, 0, 0, SHADE, 0, 0, 0, ENVIRONMENT),
|
|
gsSPTexture(65535, 65535, 0, 0, 0),
|
|
gsDPSetEnvColor(255, 255, 255, 255),
|
|
gsDPSetAlphaCompare(G_AC_NONE),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|