From 95e2213b1e78a4172e229f1b39da6828257a7bb7 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 12 Jan 2015 20:13:11 +0100 Subject: [PATCH] SSAO can me 0 sometimes --- data/shaders/ssao.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/ssao.frag b/data/shaders/ssao.frag index 73946d155..a66d8b462 100644 --- a/data/shaders/ssao.frag +++ b/data/shaders/ssao.frag @@ -62,5 +62,5 @@ void main(void) bl += max(0, dot(vi, norm) - FragPos.z * beta) / (dot(vi, vi) + epsilon); } - AO = max(pow(1.0 - min(2. * sigma * bl * invSamples, 0.99), k), 0.1); + AO = max(pow(1.0 - min(2. * sigma * bl * invSamples, 0.99), k), 0.); }