diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-10-02 20:08:07 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-10-04 23:47:13 +1100 |
commit | d09ad714bfa28df82adbbd4e5bf18a69233aae39 (patch) | |
tree | 56f3733a0ae010c557a5c6c0de8dc969ee58a012 /servers/rendering/renderer_rd/forward_clustered | |
parent | e5aa5eb8067fada41ad8ecb5027a7917d6d5084c (diff) |
Fixing artifacts in SSR
Diffstat (limited to 'servers/rendering/renderer_rd/forward_clustered')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp index c1a7818921..e4bc51bcdb 100644 --- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp @@ -1500,9 +1500,8 @@ void RenderForwardClustered::_process_ssr(Ref<RenderSceneBuffersRD> p_render_buf ERR_FAIL_COND(!environment_get_ssr_enabled(p_environment)); Size2i half_size = Size2i(internal_size.x / 2, internal_size.y / 2); - if (rb_data->ss_effects_data.ssr.output.is_null()) { - ss_effects->ssr_allocate_buffers(rb_data->ss_effects_data.ssr, _render_buffers_get_color_format(), half_size, view_count); - } + ss_effects->ssr_allocate_buffers(rb_data->ss_effects_data.ssr, _render_buffers_get_color_format(), half_size, view_count); + RID texture_slices[RendererSceneRender::MAX_RENDER_VIEWS]; RID depth_slices[RendererSceneRender::MAX_RENDER_VIEWS]; for (uint32_t v = 0; v < view_count; v++) { |