http://bugs.freedesktop.org/show_bug.cgi?id=10821
Summary: GLSL built-in mix functions takes arguments in wrong
order.
Product: Mesa
Version: 6.5
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: critical
Priority: high
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
OpenGL spec indicates that mix has the following prototype:
genType mix(genType x, genType y, genType);
And performs the following function:
return = x*(1-a) + y*a;
-----------------------------------------
Mesa seems to want to take the arguments in reverse order to get the proper
result. To get a shader that works for an NVidia card in other contexts - I
might have a line that looks like:
float color = clamp(mix(x,y,a), 0.0, 1.0);
to get the same effect, I have to modify my shader as follows:
float color = clamp(mix(a,y,x), 0.0, 1.0);
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev