From 86c8b9f83d91cefda3248df5cb42c0757cbe8dd1 Mon Sep 17 00:00:00 2001 From: vlj Date: Wed, 14 May 2014 02:12:18 +0200 Subject: [PATCH] Some tweaking to make ssao more apparent --- data/shaders/ssao.frag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/shaders/ssao.frag b/data/shaders/ssao.frag index 824b773d6..0289bb4c0 100644 --- a/data/shaders/ssao.frag +++ b/data/shaders/ssao.frag @@ -24,12 +24,12 @@ layout (std140) uniform MatrixesData in vec2 uv; out float AO; -const float sigma = 1.; +const float sigma = 2.; const float tau = 7.; const float beta = 0.0001; const float epsilon = .00001; const float radius = 1.5; -const float k = 1.; +const float k = 1.5; #define SAMPLES 16 @@ -64,7 +64,7 @@ void main(void) float h = r * alpha; vec2 offset = h * vec2(cos(theta), sin(theta)) * screen; - float m = round(log2(h) + 7); + float m = round(log2(h) + 6); ivec2 ioccluder_uv = ivec2(x, y) + ivec2(offset); ioccluder_uv = (ioccluder_uv << int(m)) >> int(m);