OpenGL2: Remove map color scaling and r_forceSunMapLightScale.

Also simplify overbright code in ComputeShaderColors().
This commit is contained in:
SmileTheory committed 2016-09-14 02:59:54 -07:00
1 parent 4c169ab574
commit 4faf1008a0
11 files changed
+32 -100

No files matched your search

+5 -3
View File
@@ -1826,11 +1826,13 @@ static qboolean ParseShader( char **text )
if (isGL2Sun)
{
token = COM_ParseExt( text, qfalse );
tr.mapLightScale = atof(token);
token = COM_ParseExt( text, qfalse );
tr.sunShadowScale = atof(token);
// parse twice, since older shaders may include mapLightScale before sunShadowScale
token = COM_ParseExt( text, qfalse );
if (token[0])
tr.sunShadowScale = atof(token);
}
SkipRestOfLine( text );