mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #109447 from jon1solution/ssao-in-gles3
Implement a very simple SSAO in GLES3.
This commit is contained in:
commit
85e47d6fac
9 changed files with 271 additions and 7 deletions
|
|
@ -1135,6 +1135,15 @@ void Environment::_validate_property(PropertyInfo &p_property) const {
|
|||
}
|
||||
}
|
||||
|
||||
if (OS::get_singleton()->get_current_rendering_method() != "forward_plus") {
|
||||
// Hide SSAO properties that only work in Forward+.
|
||||
if (p_property.name.begins_with("ssao_")) {
|
||||
if ((p_property.name != "ssao_enabled") && (p_property.name != "ssao_radius") && (p_property.name != "ssao_intensity")) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (p_property.name == "background_color") {
|
||||
if (bg_mode != BG_COLOR && ambient_source != AMBIENT_SOURCE_COLOR) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue