Apply ssao fix from master

This commit is contained in:
Deve 2016-06-30 00:50:33 +02:00
parent c07472cf38
commit 9ceab23c5f

View File

@ -39,7 +39,7 @@ void main(void)
float bl = 0.0;
float m = log2(r) + 6. + log2(invSamples);
float theta = 2. * 3.14 * tau * .5 * invSamples + phi;
float theta = mod(2. * 3.14 * tau * .5 * invSamples + phi, 6.283185307179586);
vec2 rotations = vec2(cos(theta), sin(theta)) * screen;
vec2 offset = vec2(cos(invSamples), sin(invSamples));