-" 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 *
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7378
d7cf8633-e32d-0410-b094-
e92efae38249
"#endif\n"
"\n"
"#ifdef USECONTRASTBOOST\n"
-" color.rgb = SceneBrightness / (ContrastBoostCoeff + 1 / color.rgb);\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"
"#else\n"
" color.rgb *= SceneBrightness;\n"
"#endif\n"