From bb339726164d36ef13b4fca5eb261bf7b546ce67 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Thu, 10 Feb 2022 19:57:39 +0800 Subject: [PATCH] square the SSAO output --- internal/asset/shader/world/ssao_blur.frag | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/asset/shader/world/ssao_blur.frag b/internal/asset/shader/world/ssao_blur.frag index 5f8de82..c36cf9d 100644 --- a/internal/asset/shader/world/ssao_blur.frag +++ b/internal/asset/shader/world/ssao_blur.frag @@ -16,5 +16,6 @@ void main() { output += texture(input, fragPosScreen + vec2(i, j) / screenSize).r; output /= 49.0; + output *= output; }