summaryrefslogtreecommitdiff
path: root/scene/3d/fog_volume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/fog_volume.cpp')
-rw-r--r--scene/3d/fog_volume.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/3d/fog_volume.cpp b/scene/3d/fog_volume.cpp
index 9b0a7bb302..12ca1888c4 100644
--- a/scene/3d/fog_volume.cpp
+++ b/scene/3d/fog_volume.cpp
@@ -122,8 +122,13 @@ PackedStringArray FogVolume::get_configuration_warnings() const {
Ref<Environment> environment = get_viewport()->find_world_3d()->get_environment();
+ if (OS::get_singleton()->get_current_rendering_method() != "forward_plus") {
+ warnings.push_back(RTR("Fog Volumes are only visible when using the Forward+ backend."));
+ return warnings;
+ }
+
if (environment.is_valid() && !environment->is_volumetric_fog_enabled()) {
- warnings.push_back(("Fog Volumes need volumetric fog to be enabled in the scene's Environment in order to be visible."));
+ warnings.push_back(RTR("Fog Volumes need volumetric fog to be enabled in the scene's Environment in order to be visible."));
}
return warnings;