mirror of https://github.com/ZDoom/gzdoom-gles.git
- fixed: The horizon portal drawer must set the camera position for the shader.
This gets lost when several portals are drawn sequentially and this is the only portal type which needs this information but doesn't go through the normal setup. If this is not done, fog on the horizon plane can break.
This commit is contained in:
parent
9af5dd357f
commit
a901875925
|
@ -1150,6 +1150,7 @@ void GLHorizonPortal::DrawContents()
|
|||
PortalAll.Unclock();
|
||||
return;
|
||||
}
|
||||
gl_RenderState.SetCameraPos(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy), FIXED2FLOAT(viewz));
|
||||
|
||||
|
||||
z=FIXED2FLOAT(sp->texheight);
|
||||
|
|
Loading…
Reference in New Issue