Add variants of levels without baked vertex shadows by DorfDork.

This commit is contained in:
Dario 2021-05-11 21:46:39 -03:00
parent 76b3e863f9
commit a6773ebd31
9 changed files with 4220 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#include "pc/gfx/gfx_rendering_api_config.h"
#ifndef GFX_DISABLE_BAKED_SHADOWS
// 0x0700A9E0 - 0x0700A9F8
static const Lights1 bob_seg7_lights_0700A9E0 = gdSPDefLights1(
0x33, 0x33, 0x33,
@ -1105,3 +1107,6 @@ const Gfx bob_seg7_dl_0700DD18[] = {
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};
#else
#include "model.inc.nobake.c"
#endif

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
#include "pc/gfx/gfx_rendering_api_config.h"
#ifndef GFX_DISABLE_BAKED_SHADOWS
// 0x07000000 - 0x070000F0
static const Vtx castle_courtyard_seg7_vertex_07000000[] = {
{{{ 2867, 0, 307}, 0, { 0, 479}, {0x95, 0x95, 0xa9, 0xff}}},
@ -1572,3 +1574,6 @@ const Gfx castle_courtyard_seg7_dl_070048B8[] = {
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};
#else
#include "model.inc.nobake.c"
#endif

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
#include "pc/gfx/gfx_rendering_api_config.h"
#ifndef GFX_DISABLE_BAKED_SHADOWS
// 0x070049E8 - 0x07004AC8
static const Vtx castle_courtyard_seg7_vertex_070049E8[] = {
{{{ 0, 4741, -96}, 0, { 632, -2850}, {0x72, 0x72, 0x8c, 0xff}}},
@ -170,3 +172,6 @@ const Gfx castle_courtyard_seg7_dl_07005078[] = {
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};
#else
#include "model.inc.nobake.c"
#endif

View File

@ -0,0 +1,172 @@
// 0x070049E8 - 0x07004AC8
static const Vtx castle_courtyard_seg7_vertex_070049E8[] = {
{{{ 0, 4741, -96}, 0, { 632, -2850}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3660, -546}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -358, 3662, -375}, 0, { 1292, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 2136, -792}, 0, { 638, -734}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 1751, -1195}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -554, 2139, -518}, 0, { 2694, -662}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -936, 1751, -654}, 0, { 3566, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3660, -546}, 0, { 238, 46}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3431, -733}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -358, 3662, -375}, 0, { 1560, 44}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -508, 3430, -487}, 0, { 1850, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 4741, -96}, 0, { 628, -2850}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 359, 3662, -375}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3660, -546}, 0, { 1292, 990}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x07004AC8 - 0x07004BB8
static const Vtx castle_courtyard_seg7_vertex_07004AC8[] = {
{{{ 0, 2136, -792}, 0, { 2896, -738}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 555, 2139, -518}, 0, { 840, -658}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 1751, -1195}, 0, { 3566, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 1751, -654}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3660, -546}, 0, { 1580, 46}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 359, 3662, -375}, 0, { 256, 44}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3431, -733}, 0, { 1850, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 509, 3430, -487}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 4741, -96}, 0, { 738, -2776}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 349, 3669, 156}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 359, 3662, -375}, 0, { 1738, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 555, 2139, -518}, 0, { 2982, -824}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 562, 2150, 244}, 0, { 446, -846}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 1751, -654}, 0, { 3426, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 945, 1751, 384}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x07004BB8 - 0x07004CA8
static const Vtx castle_courtyard_seg7_vertex_07004BB8[] = {
{{{ 349, 3669, 156}, 0, { 202, 36}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 508, 3431, 227}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 359, 3662, -375}, 0, { 1972, 72}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 509, 3430, -487}, 0, { 2344, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 4741, -96}, 0, { 968, -2776}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -358, 3662, -375}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -348, 3669, 156}, 0, { 1738, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -554, 2139, -518}, 0, { 412, -824}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -936, 1751, -654}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -561, 2150, 244}, 0, { 2948, -846}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -944, 1751, 384}, 0, { 3426, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -348, 3669, 156}, 0, { 2110, 36}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -358, 3662, -375}, 0, { 340, 72}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -507, 3431, 227}, 0, { 2344, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -508, 3430, -487}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x07004CA8 - 0x07004DA8
static const Vtx castle_courtyard_seg7_vertex_07004CA8[] = {
{{{ -936, 1751, -654}, 0, { 5364, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 1751, -1195}, 0, { 0, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 0, -1195}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 2136, -792}, 0, { 2036, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3431, -733}, 0, { 1864, -5480}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 509, 3430, -487}, 0, { -952, -5458}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 555, 2139, -518}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 0, -654}, 0, { -3328, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 0, -1195}, 0, { 2012, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 1751, -1195}, 0, { 1612, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 1751, -654}, 0, { -3728, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -936, 0, -654}, 0, { 5364, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -508, 3430, -487}, 0, { 2960, -5458}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 3431, -733}, 0, { 136, -5480}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -554, 2139, -518}, 0, { 3056, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 0, 2136, -792}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x07004DA8 - 0x07004EA8
static const Vtx castle_courtyard_seg7_vertex_07004DA8[] = {
{{{ 945, 1751, 384}, 0, { -3096, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 945, 0, 384}, 0, { -3092, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 1751, -654}, 0, { 2088, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 937, 0, -654}, 0, { 2088, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 509, 3430, -487}, 0, { 2000, -5454}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 508, 3431, 227}, 0, { -1560, -5410}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 555, 2139, -518}, 0, { 2240, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 562, 2150, 244}, 0, { -1560, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -936, 1751, -654}, 0, { -1052, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -936, 0, -654}, 0, { -1052, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -944, 1751, 384}, 0, { 4132, -7748}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -944, 0, 384}, 0, { 4132, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -508, 3430, -487}, 0, { 208, -5454}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -554, 2139, -518}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -507, 3431, 227}, 0, { 3772, -5410}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -561, 2150, 244}, 0, { 3772, 990}, {0xff, 0xff, 0xff, 0xff}}},
};
// 0x07004EA8 - 0x07004ED8
static const Vtx castle_courtyard_seg7_vertex_07004EA8[] = {
{{{ -25, 4639, -96}, 0, { 0, 0}, {0x70, 0x70, 0x8a, 0xff}}},
{{{ 0, 5253, -96}, 0, { 0, 0}, {0x70, 0x70, 0x8a, 0xff}}},
{{{ 26, 4639, -96}, 0, { 0, 0}, {0x70, 0x70, 0x8a, 0xff}}},
};
// 0x07004ED8 - 0x07004FB0
static const Gfx castle_courtyard_seg7_dl_07004ED8[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09007800),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
gsSPVertex(castle_courtyard_seg7_vertex_070049E8, 14, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 5, 4, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 9, 8, 10, 0x0, 11, 12, 13, 0x0),
gsSPVertex(castle_courtyard_seg7_vertex_07004AC8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 1, 3, 2, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(12, 14, 13, 0x0),
gsSPVertex(castle_courtyard_seg7_vertex_07004BB8, 15, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 9, 8, 10, 0x0, 11, 12, 13, 0x0),
gsSP1Triangle(12, 14, 13, 0x0),
gsSPEndDisplayList(),
};
// 0x07004FB0 - 0x07005060
static const Gfx castle_courtyard_seg7_dl_07004FB0[] = {
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, outside_09001000),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 64 * 32 - 1, CALC_DXT(64, G_IM_SIZ_16b_BYTES)),
gsSPVertex(castle_courtyard_seg7_vertex_07004CA8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 3, 4, 5, 0x0),
gsSP2Triangles( 6, 3, 5, 0x0, 7, 8, 9, 0x0),
gsSP2Triangles( 7, 9, 10, 0x0, 0, 2, 11, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 13, 15, 14, 0x0),
gsSPVertex(castle_courtyard_seg7_vertex_07004DA8, 16, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 2, 1, 3, 0x0),
gsSP2Triangles( 4, 5, 6, 0x0, 5, 7, 6, 0x0),
gsSP2Triangles( 8, 9, 10, 0x0, 10, 9, 11, 0x0),
gsSP2Triangles(12, 13, 14, 0x0, 14, 13, 15, 0x0),
gsSPEndDisplayList(),
};
// 0x07005060 - 0x07005078
static const Gfx castle_courtyard_seg7_dl_07005060[] = {
gsSPVertex(castle_courtyard_seg7_vertex_07004EA8, 3, 0),
gsSP1Triangle( 0, 1, 2, 0x0),
gsSPEndDisplayList(),
};
// 0x07005078 - 0x07005110
const Gfx castle_courtyard_seg7_dl_07005078[] = {
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
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_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(castle_courtyard_seg7_dl_07004ED8),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0, G_TX_RENDERTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, 6, G_TX_NOLOD),
gsDPSetTileSize(0, 0, 0, (64 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
gsSPDisplayList(castle_courtyard_seg7_dl_07004FB0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPDisplayList(castle_courtyard_seg7_dl_07005060),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};

View File

@ -1,3 +1,5 @@
#include "pc/gfx/gfx_rendering_api_config.h"
#ifndef GFX_DISABLE_BAKED_SHADOWS
// 0x07003000 - 0x070030F0
static const Vtx castle_grounds_seg7_vertex_07003000[] = {
{{{ 3784, -1330, 590}, 0, { 0, 906}, {0x70, 0x70, 0x8a, 0xff}}},
@ -1344,3 +1346,6 @@ const Gfx castle_grounds_seg7_dl_07006D70[] = {
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
};
#else
#include "model.inc.nobake.c"
#endif

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
# define GFX_DIM_SHADOWS_CLOSE_TO_GROUND
# define GFX_DISABLE_FRUSTUM_CULLING
# define GFX_DISABLE_LIGHTING
# define GFX_DISABLE_BAKED_SHADOWS
# define GFX_FLUSH_ON_ENDDL
# define GFX_OUTPUT_NORMALS_TO_VBO
# define GFX_SEPARATE_PROJECTIONS