mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Implemented a very simple SSAO in GLES3.
This commit is contained in:
parent
ab6c6eece8
commit
31ee691fbf
9 changed files with 271 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue