diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-04 15:25:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 15:25:11 +0100 |
commit | ff211c8e5a91d35088e78a977e3dcc3de96e5278 (patch) | |
tree | 1cc74e351e363793f4f26a759b2bc6c349d434cc /servers/rendering/renderer_rd | |
parent | 5ae0f0f19980a43ef0247a095ed60d190d0e6b09 (diff) | |
parent | 989a7d92707456e5c9c889c7a1a1bb048b6b973d (diff) |
Merge pull request #55386 from Calinou/allow-disable-depth-prepass
Diffstat (limited to 'servers/rendering/renderer_rd')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 2 |
1 files changed, 1 insertions, 1 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 aaf041ad5a..1771ade012 100644 --- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp @@ -1404,7 +1404,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co bool debug_voxelgis = get_debug_draw_mode() == RS::VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO || get_debug_draw_mode() == RS::VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING || get_debug_draw_mode() == RS::VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION; bool debug_sdfgi_probes = get_debug_draw_mode() == RS::VIEWPORT_DEBUG_DRAW_SDFGI_PROBES; - bool depth_pre_pass = depth_framebuffer.is_valid(); + bool depth_pre_pass = bool(GLOBAL_GET("rendering/driver/depth_prepass/enable")) && depth_framebuffer.is_valid(); bool using_ssao = depth_pre_pass && p_render_data->render_buffers.is_valid() && p_render_data->environment.is_valid() && environment_is_ssao_enabled(p_render_data->environment); bool continue_depth = false; |