]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
contrast boost: change 1 to myhvec3(1, 1, 1) to make ATI driver happy (doesn't change...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 May 2007 21:46:15 +0000 (21:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 May 2007 21:46:15 +0000 (21:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7380 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index ccbf2b2841f2412d816c56b3590654ecbf32b2a7..bb3905223ca8eddafcb523381cf2caa0b9e07a4d 100644 (file)
@@ -656,10 +656,7 @@ static const char *builtinshaderstring =
 "#endif\n"
 "\n"
 "#ifdef USECONTRASTBOOST\n"
-//"    color.rgb = SceneBrightness / (ContrastBoostCoeff + 1 / color.rgb);\n"
-//"    color.rgb *= SceneBrightness / (ContrastBoostCoeff * color.rgb + 1);\n"
-"      color.rgb = color.rgb * SceneBrightness / (ContrastBoostCoeff * color.rgb + 1);\n"
-//"    color.rgb *= SceneBrightness; color.rgb /= ContrastBoostCoeff * color.rgb + 1;\n"
+"      color.rgb = color.rgb * SceneBrightness / (ContrastBoostCoeff * color.rgb + myhvec3(1, 1, 1));\n"
 "#else\n"
 "      color.rgb *= SceneBrightness;\n"
 "#endif\n"