<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - SSAO doesn't work as expected in Supertuxkart"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95466#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - SSAO doesn't work as expected in Supertuxkart"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95466">bug 95466</a>
              from <span class="vcard"><a class="email" href="mailto:deveee@gmail.com" title="Deve <deveee@gmail.com>"> <span class="fn">Deve</span></a>
</span></b>
        <pre>I was able to make it working properly by this patch:

diff --git a/data/shaders/ssao.frag b/data/shaders/ssao.frag
index 641e3f9..91e528b 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 = 2. * 3.14 * tau * .5 * invSamples + phi;
+    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));




It looks that intel drivers doesn't like to have very big cosinus and sinus
angles. I needed to use modulo to make it smaller. Originally the theta value
was something around 10000...</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>