diff options
author | GanidhuAbey <ganidhu.abey@gmail.com> | 2021-12-26 23:13:47 -0800 |
---|---|---|
committer | GanidhuAbey <ganidhu.abey@gmail.com> | 2021-12-26 23:13:47 -0800 |
commit | 133486bfba1cdca0258432405ac9305c5aa2cdf9 (patch) | |
tree | 6fe4c18e5304e32899beecb06a30333fced97f3b /servers | |
parent | 28174d531b7128f0281fc2b88da2f4962fd3513e (diff) |
fixed depth of field bug with msaa
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 1 |
1 files changed, 1 insertions, 0 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 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(); |