mirror of https://github.com/FWGS/hlsdk-xash3d
Set hardcoded fog density to render fog under the latest GoldSrc version.
This commit is contained in:
parent
65a1492b12
commit
53e9c36f27
|
@ -188,6 +188,10 @@ void BlackFog ( void )
|
||||||
//Not in water and we want fog.
|
//Not in water and we want fog.
|
||||||
static float fColorBlack[3] = {0,0,0};
|
static float fColorBlack[3] = {0,0,0};
|
||||||
bool bFog = g_iWaterLevel < 2 && g_fStartDist > 0 && g_fEndDist > 0;
|
bool bFog = g_iWaterLevel < 2 && g_fStartDist > 0 && g_fEndDist > 0;
|
||||||
|
|
||||||
|
if( g_fEndDist > 0 )
|
||||||
|
gEngfuncs.pTriAPI->FogParams( 0.0005f, true );
|
||||||
|
|
||||||
if (bFog)
|
if (bFog)
|
||||||
gEngfuncs.pTriAPI->Fog ( fColorBlack, g_fStartDist, g_fEndDist, bFog );
|
gEngfuncs.pTriAPI->Fog ( fColorBlack, g_fStartDist, g_fEndDist, bFog );
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue