Skip to content

Commit

Permalink
Merge pull request #77089 from DearthDev/lightmapgi-dynamic-objects
Browse files Browse the repository at this point in the history
LightmapGI dynamic object lighting fix
  • Loading branch information
akien-mga committed May 17, 2023
2 parents b0f4926 + 53903f0 commit b42cea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servers/rendering/renderer_scene_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ void RendererSceneCull::_instance_pair(Instance *p_A, Instance *p_B) {
InstanceGeometryData *geom = static_cast<InstanceGeometryData *>(A->base_data);

if (A->dynamic_gi) {
geom->lightmap_captures.insert(A);
lightmap_data->geometries.insert(B);
geom->lightmap_captures.insert(B);
lightmap_data->geometries.insert(A);

if (A->scenario && A->array_index >= 0) {
InstanceData &idata = A->scenario->instance_data[A->array_index];
Expand Down

0 comments on commit b42cea1

Please sign in to comment.