summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/environment/gi.cpp
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-23 17:02:04 -0700
committerGitHub <noreply@github.com>2022-10-23 17:02:04 -0700
commit4134f2a464a3914520755a8780aebac6cb403f6b (patch)
tree4d55a7b95fd6696bae6942c3a497378f94a10ca3 /servers/rendering/renderer_rd/environment/gi.cpp
parent753a182797e28e740c09a0d7c03b94d33946a0f6 (diff)
parentb8031bb7d6d0bed33c058db20b58800e615538e3 (diff)
Merge pull request #67566 from Sauermann/fix-code-simplifications
Code simplifications
Diffstat (limited to 'servers/rendering/renderer_rd/environment/gi.cpp')
-rw-r--r--servers/rendering/renderer_rd/environment/gi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/environment/gi.cpp b/servers/rendering/renderer_rd/environment/gi.cpp
index f4a27144d9..550fe27e4c 100644
--- a/servers/rendering/renderer_rd/environment/gi.cpp
+++ b/servers/rendering/renderer_rd/environment/gi.cpp
@@ -2866,7 +2866,8 @@ void GI::VoxelGIInstance::update(bool p_update_light_instances, const Vector<RID
{
Transform3D to_cell = gi->voxel_gi_get_to_cell_xform(probe);
- Transform3D to_probe_xform = (transform * to_cell.affine_inverse()).affine_inverse();
+ Transform3D to_probe_xform = to_cell * transform.affine_inverse();
+
//update lights
for (uint32_t i = 0; i < light_count; i++) {