r7378 - trunk/darkplaces
divverent at icculus.org
divverent at icculus.org
Mon May 28 09:35:07 EDT 2007
Author: divverent
Date: 2007-05-28 09:35:07 -0400 (Mon, 28 May 2007)
New Revision: 7378
Modified:
trunk/darkplaces/gl_rmain.c
Log is attached.
glsl doesn't allow dividing by zero (result is undefined, although sane on nvidia), so...
-" color.rgb = SceneBrightness / (ContrastBoostCoeff + 1 / color.rgb);\n"
+" color.rgb = color.rgb * SceneBrightness / (ContrastBoostCoeff * color.rgb + 1);\n"
also gains some fps apparently (7600GT here)
Weirdly, *= seems to be by 3fps slower than using = and *
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20070528.133507.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20070528/9d8e6486/attachment.diff>
More information about the twilight-commits
mailing list