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:
Dileep V. Reddy 2025-05-14 21:34:36 -06:00 committed by Ricardo Luís Vaz Silva
commit c6a6ae23a6
17 changed files with 92 additions and 0 deletions

View file

@ -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);
}
//-----------------------------------------------------------------------------
//
//