after clarifications, minor cleanup

This commit is contained in:
toxieainc 2022-10-07 09:01:45 +02:00 committed by trzy
parent 75771b3d14
commit e644751f01

View file

@ -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();
@ -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