Skip to content

Commit 795cb5a

Browse files
committed
tr_shader: linearize fog colors
1 parent 990e128 commit 795cb5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/engine/renderer/tr_shader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4419,6 +4419,11 @@ static bool ParseShader( const char *_text )
44194419
return false;
44204420
}
44214421

4422+
if ( tr.worldLinearizeTexture )
4423+
{
4424+
convertFromSRGB( shader.fogParms.color );
4425+
}
4426+
44224427
token = COM_ParseExt2( text, false );
44234428

44244429
if ( !token[ 0 ] )

0 commit comments

Comments
 (0)