diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-12 19:22:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 19:22:47 +0200 |
commit | b218c6785e7be06426bdec76490b39dce5a74169 (patch) | |
tree | f2894f52c0b5f92bab92a6d43a45e7aa49e58e0a | |
parent | 3bff909237bd15706a3450f82bb555f507acfaa1 (diff) | |
parent | b3612351a82660c5e6b6bd715dc52cf369c52601 (diff) |
Merge pull request #50194 from BastiaanOlij/fix_multiple_reflection_probes
Fix indexing of multiple reflection probes
-rw-r--r-- | servers/rendering/renderer_rd/renderer_scene_render_rd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp index 46057bddab..a70514e9e5 100644 --- a/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_scene_render_rd.cpp @@ -709,6 +709,10 @@ bool RendererSceneRenderRD::reflection_probe_instance_begin_render(RID p_instanc } } + if (rpi->atlas_index != -1) { // should we fail if this is still -1 ? + atlas->reflections.write[rpi->atlas_index].owner = p_instance; + } + rpi->atlas = p_reflection_atlas; rpi->rendering = true; rpi->dirty = false; |