mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-17 22:39:17 +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:
committed by
GitHub
parent
a961393df9
commit
c58d218fe7
@@ -1912,7 +1912,7 @@ bool opengl33_renderer::Render(world_environment *Environment)
|
|||||||
::glBlendFunc( GL_SRC_ALPHA, GL_ONE );
|
::glBlendFunc( GL_SRC_ALPHA, GL_ONE );
|
||||||
|
|
||||||
// stars
|
// stars
|
||||||
if (Environment->m_stars.m_stars != nullptr)
|
if (Environment->m_stars.m_stars != nullptr && Global.fFogEnd > 500.f)
|
||||||
{
|
{
|
||||||
// setup
|
// setup
|
||||||
::glPushMatrix();
|
::glPushMatrix();
|
||||||
|
|||||||
Reference in New Issue
Block a user