Skip to content

Commit 041e0f1

Browse files
committed
tr_shader: linearize fog colors
1 parent f2c030a commit 041e0f1

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
@@ -4415,6 +4415,11 @@ static bool ParseShader( const char *_text )
44154415
return false;
44164416
}
44174417

4418+
if ( tr.worldLinearizeTexture )
4419+
{
4420+
convertFromSRGB( shader.fogParms.color );
4421+
}
4422+
44184423
token = COM_ParseExt2( text, false );
44194424

44204425
if ( !token[ 0 ] )

0 commit comments

Comments
 (0)