From 0ed2ed3623bb8db9d1427816bacab8b0cd1eb977 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 2 Oct 2023 01:32:34 -0400 Subject: [PATCH] Improved SSAO --- Resources/Shaders/ssao.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Shaders/ssao.shader b/Resources/Shaders/ssao.shader index ce931d7d..8495339d 100644 --- a/Resources/Shaders/ssao.shader +++ b/Resources/Shaders/ssao.shader @@ -113,7 +113,7 @@ void main() const float maxRadius = 1.2f; const float scalerPow = 1.8f; depthScaler = min(max(pow(depthScaler, scalerPow), minRadius), maxRadius); - float scaledRadius = u_Radius * depthScaler; + float scaledRadius = u_Radius; vec3 fragPos = ViewPosFromDepth(depth); vec3 normal = texture(u_Normal, UV).xyz * 2.0 - 1.0;//normal_from_depth(depth, UV);