vec3_t fogvec;
VectorCopy(r_refdef.fogcolor, fogvec);
// color.rgb *= SceneBrightness;
+ VectorScale(fogvec, r_view.colorscale, fogvec);
if(r_glsl.integer && (r_glsl_contrastboost.value > 1 || r_glsl_contrastboost.value < 0)) // need to support contrast boost
{
// color.rgb *= ContrastBoost / ((ContrastBoost - 1) * color.rgb + 1);
fogvec[1] *= r_glsl_contrastboost.value / ((r_glsl_contrastboost.value - 1) * fogvec[1] + 1);
fogvec[2] *= r_glsl_contrastboost.value / ((r_glsl_contrastboost.value - 1) * fogvec[2] + 1);
}
- VectorScale(fogvec, r_view.colorscale, fogvec);
r_refdef.fogcolor[0] = bound(0.0f, fogvec[0], 1.0f);
r_refdef.fogcolor[1] = bound(0.0f, fogvec[1], 1.0f);
r_refdef.fogcolor[2] = bound(0.0f, fogvec[2], 1.0f);