We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f328c4 commit e003e01Copy full SHA for e003e01
src/engine/renderer/tr_shader.cpp
@@ -4620,6 +4620,7 @@ static bool ParseShader( const char *_text )
4620
continue;
4621
}
4622
// fogGradient
4623
+ // Default: fogGradient expFalloff 5
4624
else if ( !Q_stricmp( token, "fogGradient" ) )
4625
{
4626
token = COM_ParseExt2( text, false );
@@ -6007,7 +6008,7 @@ static shader_t *FinishShader()
6007
6008
6009
if ( shader.fogParms.falloffExp == 0.0f )
6010
- shader.fogParms.falloffExp = 9999;
6011
+ shader.fogParms.falloffExp = M_LN2 / 5;
6012
6013
6014
numStages = MAX_SHADER_STAGES;
0 commit comments