* [Bug 51421] New: sin and cos is broken
@ 2012-06-25 20:00 bugzilla-daemon
2012-11-27 11:26 ` [Bug 51421] " bugzilla-daemon
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2012-06-25 20:00 UTC (permalink / raw)
To: dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=51421
Bug #: 51421
Summary: sin and cos is broken
Classification: Unclassified
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/i915g
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: cme3000@gmail.com
sin is broken with negative values
it just renders on the right side of the screen in shaders like
http://glsl.heroku.com/e#2465.1
cos seems to be broken, too, just replace sin with cos on that web page.
mesa: git-d105654
OS: Debian unstable, kernel 3.4
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug 51421] sin and cos is broken
2012-06-25 20:00 [Bug 51421] New: sin and cos is broken bugzilla-daemon
@ 2012-11-27 11:26 ` bugzilla-daemon
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2012-11-27 11:26 UTC (permalink / raw)
To: dri-devel
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-27 11:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 20:00 [Bug 51421] New: sin and cos is broken bugzilla-daemon
2012-11-27 11:26 ` [Bug 51421] " bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).