Skip to content

Commit

Permalink
Merge pull request #97925 from huwpascoe/lightmap_dynamic_bugfix
Browse files Browse the repository at this point in the history
Fix updating dynamic objects in LightmapGI
  • Loading branch information
Repiteo committed Oct 21, 2024
2 parents 44fa552 + 274076c commit 5e65747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions servers/rendering/renderer_scene_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,9 @@ void RendererSceneCull::_update_instance(Instance *p_instance) {
pair.bvh2 = &p_instance->scenario->indexers[Scenario::INDEXER_VOLUMES];
}
pair.cull_mask = RSG::light_storage->light_get_cull_mask(p_instance->base);
} else if (p_instance->base_type == RS::INSTANCE_LIGHTMAP) {
pair.pair_mask = RS::INSTANCE_GEOMETRY_MASK;
pair.bvh = &p_instance->scenario->indexers[Scenario::INDEXER_GEOMETRY];
} else if (geometry_instance_pair_mask & (1 << RS::INSTANCE_REFLECTION_PROBE) && (p_instance->base_type == RS::INSTANCE_REFLECTION_PROBE)) {
pair.pair_mask = RS::INSTANCE_GEOMETRY_MASK;
pair.bvh = &p_instance->scenario->indexers[Scenario::INDEXER_GEOMETRY];
Expand Down

0 comments on commit 5e65747

Please sign in to comment.