Don't scale shadow multipliers by overbrightbits, and improve documentation.

This commit is contained in:
SmileTheory committed 2013-04-22 21:52:16 -07:00
1 parent feb012152c
commit 8270d54a25
6 files changed
+52 -26

No files matched your search

+1 -3
View File
@@ -1636,8 +1636,6 @@ static qboolean ParseShader( char **text )
a = atof( token );
VectorScale( tr.sunLight, a, tr.sunLight);
VectorSet( tr.sunAmbient, 0.0f, 0.0f, 0.0f);
token = COM_ParseExt( text, qfalse );
a = atof( token );
a = a / 180 * M_PI;
@@ -1656,7 +1654,7 @@ static qboolean ParseShader( char **text )
tr.mapLightScale = atof(token);
token = COM_ParseExt( text, qfalse );
VectorScale( tr.sunLight, atof(token), tr.sunAmbient );
tr.sunShadowScale = atof(token);
}
SkipRestOfLine( text );