mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Don't draw horizon if transparency value is too low
This commit is contained in:
parent
892b69fc80
commit
506deb966d
1 changed files with 1 additions and 1 deletions
|
@ -3029,7 +3029,7 @@ namespace TEN::Renderer
|
|||
// Draw horizon.
|
||||
for (int layer = 0; layer < 2; layer++)
|
||||
{
|
||||
if (!levelPtr->GetHorizonEnabled(layer))
|
||||
if (!levelPtr->GetHorizonEnabled(layer) || levelPtr->GetHorizonTransparency(layer) <= EPSILON)
|
||||
continue;
|
||||
|
||||
SetDepthState(DepthState::None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue