OpenGL2: Remove map color scaling and r_forceSunMapLightScale.
Also simplify overbright code in ComputeShaderColors().
This commit is contained in:
parent
4c169ab574
commit
4faf1008a0
11 changed files with 32 additions and 100 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue