From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 51421] sin and cos is broken
Date: Tue, 27 Nov 2012 11:26:26 +0000 [thread overview]
Message-ID: <bug-51421-502-2OFchHxOKB@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-51421-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1023 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=51421
Golubev Yaroslav <My3blkant50@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTABUG
--- Comment #1 from Golubev Yaroslav <My3blkant50@gmail.com> ---
http://glsl.heroku.com/e#2465.1
>#ifdef GL_ES
>precision mediump float;
>#endif
>uniform float time;
>uniform vec2 mouse;
>uniform vec2 resolution;
>
>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 );
>}
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
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2603 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2012-11-27 11:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 20:00 [Bug 51421] New: sin and cos is broken bugzilla-daemon
2012-11-27 11:26 ` bugzilla-daemon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-51421-502-2OFchHxOKB@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox