summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-04-18 14:21:29 +0200
committerBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-04-18 14:21:29 +0200
commitf1b758022a30f3303c2a3b50a1293b8bc0af4968 (patch)
tree245b999385a44318ac2dc5f5d9f480c66b24986f /modules
parent2543d192c3f74640393f245e48fdf70e241dbe37 (diff)
downloadredot-engine-f1b758022a30f3303c2a3b50a1293b8bc0af4968.tar.gz
LightmapGI: Fix seam blending with directional lightmaps
Diffstat (limited to 'modules')
-rw-r--r--modules/lightmapper_rd/lightmapper_rd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lightmapper_rd/lightmapper_rd.cpp b/modules/lightmapper_rd/lightmapper_rd.cpp
index b6f5d6ce57..835fb3e59d 100644
--- a/modules/lightmapper_rd/lightmapper_rd.cpp
+++ b/modules/lightmapper_rd/lightmapper_rd.cpp
@@ -1908,7 +1908,7 @@ LightmapperRD::BakeError LightmapperRD::bake(BakeQuality p_quality, bool p_use_d
seams_push_constant.slice = uint32_t(i * subslices + k);
seams_push_constant.debug = debug;
- RD::DrawListID draw_list = rd->draw_list_begin(framebuffers[i], RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_STORE, RD::INITIAL_ACTION_CLEAR, RD::FINAL_ACTION_DISCARD, clear_colors);
+ RD::DrawListID draw_list = rd->draw_list_begin(framebuffers[i * subslices + k], RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_STORE, RD::INITIAL_ACTION_CLEAR, RD::FINAL_ACTION_DISCARD, clear_colors);
rd->draw_list_bind_uniform_set(draw_list, raster_base_uniform, 0);
rd->draw_list_bind_uniform_set(draw_list, blendseams_raster_uniform, 1);