skys are no longer brighted with brightness (they saturate way too fast)

This commit is contained in:
Bill Currie 2001-01-07 12:19:27 +00:00
parent 73d26a4e32
commit dd37b164e6

View file

@ -653,8 +653,11 @@ R_DrawSkyDomePoly (glpoly_t *poly)
void void
R_DrawSkyChain (msurface_t *sky_chain) R_DrawSkyChain (msurface_t *sky_chain)
{ {
extern cvar_t *brightness;
msurface_t *sc = sky_chain; msurface_t *sc = sky_chain;
float l = 1 / (256 * brightness->value);
glColor3f (lighthalf_v[0] * l, lighthalf_v[1] * l, lighthalf_v[2] * l);
if (skyloaded) { if (skyloaded) {
glDepthRange (gldepthmax, gldepthmax); glDepthRange (gldepthmax, gldepthmax);
while (sc) { while (sc) {