1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Implemented a very simple SSAO in GLES3.

This commit is contained in:
jon1solution
2025-08-08 14:37:39 -07:00
parent ab6c6eece8
commit 31ee691fbf
9 changed files with 271 additions and 7 deletions

View File

@@ -588,8 +588,8 @@ void RendererEnvironmentStorage::environment_set_ssao(RID p_env, bool p_enable,
Environment *env = environment_owner.get_or_null(p_env);
ERR_FAIL_NULL(env);
#ifdef DEBUG_ENABLED
if (OS::get_singleton()->get_current_rendering_method() != "forward_plus" && p_enable) {
WARN_PRINT_ONCE_ED("Screen-space ambient occlusion (SSAO) can only be enabled when using the Forward+ renderer.");
if (OS::get_singleton()->get_current_rendering_method() == "mobile" && p_enable) {
WARN_PRINT_ONCE_ED("Screen-space ambient occlusion (SSAO) can only be enabled when using the Forward+ or Compatibility renderers.");
}
#endif
env->ssao_enabled = p_enable;