<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:My3blkant50@gmail.com" title="Golubev Yaroslav <My3blkant50@gmail.com>"> <span class="fn">Golubev Yaroslav</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - sin and cos is broken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51421">bug 51421</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTABUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - sin and cos is broken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51421#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - sin and cos is broken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=51421">bug 51421</a>
              from <span class="vcard"><a class="email" href="mailto:My3blkant50@gmail.com" title="Golubev Yaroslav <My3blkant50@gmail.com>"> <span class="fn">Golubev Yaroslav</span></a>
</span></b>
        <pre><a href="http://glsl.heroku.com/e#2465.1">http://glsl.heroku.com/e#2465.1</a>
<span class="quote">>#ifdef GL_ES
>precision mediump float;
>#endif
>uniform float time;
>uniform vec2 mouse;
>uniform vec2 resolution;</span >
>
<span class="quote">>void main( void ) {
>    float bla = gl_FragCoord.x/resolution.x; 
>    float value = sin((bla-0.5)*100.0);
>    gl_FragColor = vec4(value,value,value, 1.0 );
>}</span >

1) according to specification sin accepts angle in radians:
2) also gl_FragColor.# should be in [0;1], but sin (x in (0;-pi))<0

=> float value = abs(sin(radians((bla-0.5)*100.0)));
works fine</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>