mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 22:22:21 -04:00
[jak2] Support per-proto shrub visibility (#3228)
Fixes the issue reported in https://github.com/open-goal/jak-project/issues/3168, https://github.com/open-goal/jak-project/issues/3189, https://github.com/open-goal/jak-project/issues/3166, https://github.com/open-goal/jak-project/issues/3152, https://github.com/open-goal/jak-project/issues/3224 where a small part of the pipes in the `strip-grenade` mission appear, but shouldn't.
This commit is contained in:
@@ -42,6 +42,7 @@ void ShrubDraw::serialize(Serializer& ser) {
|
||||
ser.from_ptr(&num_triangles);
|
||||
ser.from_ptr(&first_index_index);
|
||||
ser.from_ptr(&num_indices);
|
||||
ser.from_ptr(&proto_idx);
|
||||
}
|
||||
|
||||
void InstancedStripDraw::serialize(Serializer& ser) {
|
||||
@@ -416,6 +417,9 @@ void ShrubTree::serialize(Serializer& ser) {
|
||||
for (auto& draw : static_draws) {
|
||||
draw.serialize(ser);
|
||||
}
|
||||
|
||||
ser.from_ptr(&has_per_proto_visibility_toggle);
|
||||
ser.from_string_vector(&proto_names);
|
||||
}
|
||||
|
||||
void BVH::serialize(Serializer& ser) {
|
||||
|
||||
Reference in New Issue
Block a user