16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00

opengl33renderer: Don't render stars with strong fog (#134)

Stars aren't currently affected by fog. Band-aid it and don't render them
at all when fog is stronger than 500m.
This commit is contained in:
Sebastian Krzyszkowiak
2026-07-15 21:48:27 +02:00
committed by GitHub
parent a961393df9
commit c58d218fe7

View File

@@ -1912,7 +1912,7 @@ bool opengl33_renderer::Render(world_environment *Environment)
::glBlendFunc( GL_SRC_ALPHA, GL_ONE );
// stars
if (Environment->m_stars.m_stars != nullptr)
if (Environment->m_stars.m_stars != nullptr && Global.fFogEnd > 500.f)
{
// setup
::glPushMatrix();