Re #249 Increase background darkness when rainy weather and sky dome disabled

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3300 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c50f63503300c6c6b220fe9147b9066fccfc0e16
Former-commit-id: d0051ba07149c5d51db2a338e33d7afbebe91c3d
This commit is contained in:
pouillot 2011-02-02 14:04:31 +00:00
parent 13e6ce73ae
commit 80caa830df

View file

@ -414,7 +414,7 @@ grLoadBackground(void)
glClearColor(graphic->bgColor[0], graphic->bgColor[1], graphic->bgColor[2], 1.0);
TheBackground = new ssgRoot();
clr[0] = clr[1] = clr[2] = 1.0 / (1.0 + 0.5 * grTrack->local.rain); //1.0;
clr[0] = clr[1] = clr[2] = 1.0 / (1.0 + 1.0 * grTrack->local.rain);
clr[3] = 1.0;
nrm[0] = nrm[2] = 0.0;
nrm[1] = 1.0;