We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f107d commit 8b4cd23Copy full SHA for 8b4cd23
data/shaders/ssao.frag
@@ -40,7 +40,7 @@ void main(void)
40
float bl = 0.0;
41
float m = log2(r) + 6 + log2(invSamples);
42
43
- float theta = radians(mod(degrees(2. * 3.14 * tau * .5 * invSamples + phi), 360.));
+ float theta = mod(2. * 3.14 * tau * .5 * invSamples + phi, 6.283185307179586);
44
vec2 rotations = vec2(cos(theta), sin(theta)) * screen;
45
vec2 offset = vec2(cos(invSamples), sin(invSamples));
46
0 commit comments