mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Restore handling of fog depth == 0 values (Bug #1549)
This commit is contained in:
parent
dca08b0b42
commit
681183df31
@ -379,8 +379,17 @@ namespace MWRender
|
||||
else
|
||||
{
|
||||
setFogColor(mFogColor);
|
||||
mStateUpdater->setFogStart(mViewDistance * (1 - mFogDepth));
|
||||
mStateUpdater->setFogEnd(mViewDistance);
|
||||
|
||||
if (mFogDepth == 0.f)
|
||||
{
|
||||
mStateUpdater->setFogStart(0.f);
|
||||
mStateUpdater->setFogEnd(FLT_MAX);
|
||||
}
|
||||
else
|
||||
{
|
||||
mStateUpdater->setFogStart(mViewDistance * (1 - mFogDepth));
|
||||
mStateUpdater->setFogEnd(mViewDistance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user