OpenGL2: Add fourth cascade for sun shadows, and adjust sun shadow cvar defaults.

This commit is contained in:
SmileTheory 2014-07-31 21:01:57 -07:00
parent 7b866ae96d
commit 2b2d696f12
10 changed files with 235 additions and 110 deletions

View file

@ -3313,6 +3313,9 @@ void RE_LoadWorldMap( const char *name ) {
tr.toneMinAvgMaxLevel[1] = -2.0f;
tr.toneMinAvgMaxLevel[2] = 0.0f;
// reset last cascade sun direction so last shadow cascade is rerendered
VectorClear(tr.lastCascadeSunDirection);
tr.worldMapLoaded = qtrue;
// load it