> It looks like the fog factor for per-pixel fog is calculated backwards.
>...
This is not the only problem with pixel fog. I have only checked this in
3.0, not 3.1b3, but it may be related and thus of some use:
On at least one system I tried this on (64bit Irix 6.5), with GL_NICEST as
the fog hint, the colors were also wrong. This was in a 24-bit TrueColor
visual.
black mapped to blue (0 0 0) => (0 0 1)
red mapped to cyan (1 0 0) => (0 1 1)
green mapped to magenta (0 1 0) => (1 0 1)
blue mapped to blue (0 0 1) => (0 0 1)
Since this was an RGBA visual, I image the byte order was probably getting
swapped.
------------------------------------------ - - - - - - - - - - - - - - -
Jeremy Meredith | email: [EMAIL PROTECTED]
Lawrence Livermore National Laboratory | phone: (925) 422-1197
P.O. Box 808 L-98 | fax : (925) 422-3389
Livermore, CA 94550 | loc : bldg 132N room 1025
_______________________________________________
Mesa-bug maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev