mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 10:11:44 -04:00
[jak2] misc fixes to renderers (#2488)
Fixes decal on tfrag:  Sets up jak 2 alpha shrub test settings. They are still too dark, but there's no longer incorrect alpha test:  Fix decal on shrub, a feature used in exactly one place in jak 1:  Fixed issue with u16 overflow in castle on the alpha channel, causing flickering. It barely overflowed, which made me suspicious that we had some error somewhere. But I think that there code is robust against overflows.
This commit is contained in:
@@ -197,7 +197,7 @@ std::vector<level_tools::TextureRemap> extract_bsp_from_level(const ObjectFileDB
|
||||
dynamic_cast<level_tools::shrub_types::DrawableTreeInstanceShrub*>(draw_tree.get());
|
||||
ASSERT(as_shrub_tree);
|
||||
extract_shrub(as_shrub_tree, fmt::format("{}-{}-shrub", dgo_name, i++),
|
||||
bsp_header.texture_remap_table, tex_db, {}, level_data, false);
|
||||
bsp_header.texture_remap_table, tex_db, {}, level_data, false, db.version());
|
||||
} else if (draw_tree->my_type() == "drawable-tree-collide-fragment" && extract_collision) {
|
||||
auto as_collide_frags =
|
||||
dynamic_cast<level_tools::DrawableTreeCollideFragment*>(draw_tree.get());
|
||||
|
||||
Reference in New Issue
Block a user