ThickFogDistance and ThickFogMultiplier MAPINFO variables adds thicker fog (Vulkan and OpenGL only) beyond ThickFogDistance, as long as it is possible. But default it is -1.f (disabled).
This commit is contained in:
parent
f4ac616b57
commit
c6a6ae23a6
17 changed files with 92 additions and 0 deletions
|
|
@ -952,6 +952,36 @@ CCMD(skymisttoggle)
|
|||
primaryLevel->flags3 ^= LEVEL3_SKYMIST;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
CCMD(thickfogdistance)
|
||||
{
|
||||
if (argv.argc() > 1)
|
||||
{
|
||||
// Do this only on the primary level.
|
||||
primaryLevel->thickfogdistance = (float)strtod(argv[1], NULL);
|
||||
}
|
||||
Printf("%f (positive means enabled)\n", primaryLevel->thickfogdistance);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
CCMD(thickfogmultiplier)
|
||||
{
|
||||
if (argv.argc() > 1)
|
||||
{
|
||||
// Do this only on the primary level.
|
||||
primaryLevel->thickfogmultiplier = max(0.f, (float)strtod(argv[1], NULL));
|
||||
}
|
||||
Printf("%f\n", primaryLevel->thickfogmultiplier);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue