diff options
author | clayjohn <claynjohn@gmail.com> | 2022-09-16 09:16:10 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-09-16 09:18:11 -0700 |
commit | 2ecc8b9a73e48507da9eab0850f38f03d9908929 (patch) | |
tree | cddbbd15c403831fa06d377c7919a72cab618bfc /servers/rendering/renderer_rd/forward_mobile | |
parent | d39d462907a11f310e7a15c63659bf0a2d528008 (diff) |
Restore fog in vulkan mobile renderer.
The condition accidentally disabled fog whenever it was enabled
Diffstat (limited to 'servers/rendering/renderer_rd/forward_mobile')
-rw-r--r-- | servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp index 46d90e75fb..0efa5ceba6 100644 --- a/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp +++ b/servers/rendering/renderer_rd/forward_mobile/render_forward_mobile.cpp @@ -719,7 +719,7 @@ void RenderForwardMobile::_render_scene(RenderDataRD *p_render_data, const Color spec_constant_base_flags |= 1 << SPEC_CONSTANT_DISABLE_DIRECTIONAL_LIGHTS; } - if (!is_environment(p_render_data->environment) || environment_get_fog_enabled(p_render_data->environment)) { + if (!is_environment(p_render_data->environment) || !environment_get_fog_enabled(p_render_data->environment)) { spec_constant_base_flags |= 1 << SPEC_CONSTANT_DISABLE_FOG; } } |