Skip to content

Commit

Permalink
after clarifications, minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc authored and trzy committed Oct 10, 2022
1 parent 75771b3 commit e644751
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/Graphics/New3D/New3D.cpp
Expand Up @@ -371,7 +371,8 @@ void CNew3D::RenderFrame(void)
m_r3dShader.DiscardAlpha(true); // discard all translucent pixels in opaque pass
bool hasOverlay = RenderScene(pri, renderOverlay, Layer::colour);

if (!renderOverlay && ProcessLos(pri)) {
if (!renderOverlay) {
ProcessLos(pri);
}

DisableRenderStates();
Expand All @@ -380,7 +381,7 @@ void CNew3D::RenderFrame(void)
m_r3dFrameBuffers.CompositeBaseLayer(); // copy opaque pixels to back buffer

SetRenderStates();

glDepthFunc(GL_LESS); // alpha polys seem to use gl_less (ocean hunter)

m_r3dShader.DiscardAlpha (false); // render only translucent pixels
Expand Down

0 comments on commit e644751

Please sign in to comment.