diff options
Diffstat (limited to 'scene/resources/environment.cpp')
| -rw-r--r-- | scene/resources/environment.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 910a6e303d..f8c70c3002 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -1131,8 +1131,15 @@ void Environment::_validate_property(PropertyInfo &p_property) const { p_property.usage = PROPERTY_USAGE_NO_EDITOR; } - if (p_property.name == "glow_mix" && glow_blend_mode != GLOW_BLEND_MODE_MIX) { - p_property.usage = PROPERTY_USAGE_NO_EDITOR; + if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") { + // Hide glow properties we do not support in GL Compatibility. + if (p_property.name.begins_with("glow_levels") || p_property.name == "glow_normalized" || p_property.name == "glow_strength" || p_property.name == "glow_mix" || p_property.name == "glow_blend_mode" || p_property.name == "glow_map_strength" || p_property.name == "glow_map") { + p_property.usage = PROPERTY_USAGE_NO_EDITOR; + } + } else { + if (p_property.name == "glow_mix" && glow_blend_mode != GLOW_BLEND_MODE_MIX) { + p_property.usage = PROPERTY_USAGE_NO_EDITOR; + } } if (p_property.name == "background_color") { |
