You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user