Skip to content

Commit

Permalink
OpenGL2: Fix fog color.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileTheory committed Oct 13, 2016
1 parent ad819ed commit 863adfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/renderergl2/tr_bsp.c
Expand Up @@ -2556,9 +2556,9 @@ static void R_LoadFogs( lump_t *l, lump_t *brushesLump, lump_t *sidesLump ) {

out->parms = shader->fogParms;

out->colorInt = ColorBytes4 ( shader->fogParms.color[0] * tr.identityLight,
shader->fogParms.color[1] * tr.identityLight,
shader->fogParms.color[2] * tr.identityLight, 1.0 );
out->colorInt = ColorBytes4 ( shader->fogParms.color[0],
shader->fogParms.color[1],
shader->fogParms.color[2], 1.0 );

d = shader->fogParms.depthForOpaque < 1 ? 1 : shader->fogParms.depthForOpaque;
out->tcScale = 1.0f / ( d * 8 );
Expand Down

0 comments on commit 863adfc

Please sign in to comment.