Some tweaking to make ssao more apparent

This commit is contained in:
vlj 2014-05-14 02:12:18 +02:00
parent 474bbb4373
commit 86c8b9f83d

View File

@ -24,12 +24,12 @@ layout (std140) uniform MatrixesData
in vec2 uv; in vec2 uv;
out float AO; out float AO;
const float sigma = 1.; const float sigma = 2.;
const float tau = 7.; const float tau = 7.;
const float beta = 0.0001; const float beta = 0.0001;
const float epsilon = .00001; const float epsilon = .00001;
const float radius = 1.5; const float radius = 1.5;
const float k = 1.; const float k = 1.5;
#define SAMPLES 16 #define SAMPLES 16
@ -64,7 +64,7 @@ void main(void)
float h = r * alpha; float h = r * alpha;
vec2 offset = h * vec2(cos(theta), sin(theta)) * screen; 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); ivec2 ioccluder_uv = ivec2(x, y) + ivec2(offset);
ioccluder_uv = (ioccluder_uv << int(m)) >> int(m); ioccluder_uv = (ioccluder_uv << int(m)) >> int(m);