Add warnings for unsupported features in mobile and gl_compatibility backends
This commit is contained in:
parent
84a80721c5
commit
c69b14e96e
23 changed files with 170 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue