mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
[shrub] Fix bug with gs-prim settings (#2899)
Fix the bug described in https://github.com/open-goal/jak-project/issues/2882 where some shrubs are transparent when they shouldn't be. The problem was that we never carefully looked at the settings in `gs-prim`, which has a bit to enable/disable alpha blending entirely. Now it should be correct for both jak 1 and jak 2. To see this change, you'll need to re-extract. Also adds a setting to disable saving texture .pngs, to speed up decompilation. I left it on for jak 1 (to avoid confusion for texture swapping(, but off for jak 2 for now.
This commit is contained in:
@@ -741,7 +741,8 @@ std::string ObjectFileDB::process_tpages(TextureDB& tex_db,
|
||||
std::string result;
|
||||
for_each_obj([&](ObjectFileData& data) {
|
||||
if (data.name_in_dgo.substr(0, tpage_string.length()) == tpage_string) {
|
||||
auto statistics = process_tpage(data, tex_db, output_path, cfg.animated_textures);
|
||||
auto statistics =
|
||||
process_tpage(data, tex_db, output_path, cfg.animated_textures, cfg.save_texture_pngs);
|
||||
total += statistics.total_textures;
|
||||
success += statistics.successful_textures;
|
||||
total_px += statistics.num_px;
|
||||
|
||||
Reference in New Issue
Block a user