Merge pull request #91344 from tactical-fluke/vk_fix_unshaded_sdfgi

Fix SDFGI being used in unshaded debug draw
This commit is contained in:
Rémi Verschelde 2024-05-01 09:55:18 +02:00
commit 7733ecd1ee
No known key found for this signature in database
GPG key ID: C3336907360768E1

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