http://bugs.freedesktop.org/show_bug.cgi?id=17259
Summary: gl_FrontColor does not get clamped when FS is enabled
Product: Mesa
Version: CVS
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
When a fragment shader is used, e.g.: "void main() { gl_FragColor = gl_Color;}"
along with fixed-functionality lighting, the computed vertex colors do not get
clamped, as specified in section 2.14.6 "Clamping or Masking" of OpenGL spec
2.1.
Thus, if for example s_cm=(2,2,2), s_cli=(2,2,2), then the hotspot gets much
larger, because the vertex colors are nearing (4,4,4) and are not clamped to
[0,1].
AFAICT this clamping functionality should not be replaced by neither a VS nor a
FS. I also tried this on Windows on R530 with the Catalyst driver and it worked
(it got clamped) so the result was exactly the same as when using fixed
functionality for both vertex and fragment stage.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev