diff --git a/data/shaders/ssao.frag b/data/shaders/ssao.frag index 641e3f911..91e528b82 100644 --- a/data/shaders/ssao.frag +++ b/data/shaders/ssao.frag @@ -40,7 +40,7 @@ void main(void) float bl = 0.0; float m = log2(r) + 6 + log2(invSamples); - float theta = mod(2. * 3.14 * tau * .5 * invSamples + phi, 360.); + float theta = radians(mod(degrees(2. * 3.14 * tau * .5 * invSamples + phi), 360.)); vec2 rotations = vec2(cos(theta), sin(theta)) * screen; vec2 offset = vec2(cos(invSamples), sin(invSamples));