Skip to content

Commit

Permalink
[rend2] Fix fog color in hdr lighting conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaZ committed Oct 22, 2023
1 parent e67779a commit b23b3f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shared/rd-rend2/tr_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2788,6 +2788,13 @@ static qboolean ParseShader( const char **text )
return qfalse;
}

if (tr.hdrLighting)
{
shader.fogParms.color[0] = sRGBtoRGB(shader.fogParms.color[0]);
shader.fogParms.color[1] = sRGBtoRGB(shader.fogParms.color[1]);
shader.fogParms.color[2] = sRGBtoRGB(shader.fogParms.color[2]);
}

token = COM_ParseExt( text, qfalse );
if ( !token[0] )
{
Expand Down

0 comments on commit b23b3f1

Please sign in to comment.