mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
- 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
1 changed files with 1 additions and 0 deletions
|
@ -1150,6 +1150,7 @@ void GLHorizonPortal::DrawContents()
|
||||||
PortalAll.Unclock();
|
PortalAll.Unclock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
gl_RenderState.SetCameraPos(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy), FIXED2FLOAT(viewz));
|
||||||
|
|
||||||
|
|
||||||
z=FIXED2FLOAT(sp->texheight);
|
z=FIXED2FLOAT(sp->texheight);
|
||||||
|
|
Loading…
Reference in a new issue