Skip to content

Commit

Permalink
Fix SDFGI being used in unshaded debug draw
Browse files Browse the repository at this point in the history
  • Loading branch information
tactical-fluke authored and dimitry- committed May 16, 2024
1 parent 5386bc9 commit d0cbfaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
}

if (p_render_data->environment.is_valid()) {
if (environment_get_sdfgi_enabled(p_render_data->environment)) {
if (environment_get_sdfgi_enabled(p_render_data->environment) && get_debug_draw_mode() != RS::VIEWPORT_DEBUG_DRAW_UNSHADED) {
using_sdfgi = true;
}
if (environment_get_ssr_enabled(p_render_data->environment)) {
Expand Down

0 comments on commit d0cbfaf

Please sign in to comment.