[jak2] a few small graphics fixes (#2424)

- better handling of the `disable-fog` settings for merc, should fix the
spotlights. There's a setting in the merc effect, and also a runtime
flag for the draw-control. I'm not actually sure what reads these, but
the draw-control one is definitely used to disable fog on the
spotlights.
- increase merc draw limit to try to fix the issue about partially drawn
citizens in the city
- remove useless debug prints (it's okay to die in init, and the medium
load buffer size mode is understood now)
This commit is contained in:
water111
2023-03-26 12:30:35 -04:00
committed by GitHub
parent 7170db51ea
commit 9e087cbfcb
11 changed files with 103 additions and 26 deletions
@@ -2550,6 +2550,9 @@ void add_vertices_and_static_draw(tfrag3::TieTree& tree,
// bool using_wind = true; // hack, for testing
bool using_wind = proto.stiffness != 0.f;
if (version == GameVersion::Jak2) {
using_wind = false; // disable wind on jak 2 for now - not supported in GOAL or C++ yet.
}
bool using_envmap = info.uses_envmap;
ASSERT(using_envmap == proto.envmap_adgif.has_value());