Add warnings for unsupported features in mobile and gl_compatibility backends
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user