From 133486bfba1cdca0258432405ac9305c5aa2cdf9 Mon Sep 17 00:00:00 2001 From: GanidhuAbey Date: Sun, 26 Dec 2021 23:13:47 -0800 Subject: fixed depth of field bug with msaa --- .../rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/rendering/renderer_rd') 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 03ce2690bf..42dbc8c5d1 100644 --- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp @@ -1598,6 +1598,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co if (render_buffer && render_buffer->msaa != RS::VIEWPORT_MSAA_DISABLED) { RD::get_singleton()->texture_resolve_multisample(render_buffer->color_msaa, render_buffer->color); + storage->get_effects()->resolve_depth(render_buffer->depth_msaa, render_buffer->depth, Vector2i(render_buffer->width, render_buffer->height), texture_multisamples[render_buffer->msaa]); } RD::get_singleton()->draw_command_end_label(); -- cgit v1.2.3