Merge pull request #91344 from tactical-fluke/vk_fix_unshaded_sdfgi
Fix SDFGI being used in unshaded debug draw
This commit is contained in:
commit
7733ecd1ee
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue