Fix SDFGI being used in unshaded debug draw

Fixes #62758
This commit is contained in:
tactical-fluke 2024-04-30 11:21:00 +08:00
parent 780e1a5040
commit 216c9a6bd9

View File

@ -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)) {