mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
Fix sprites/translucent stuff being occluded by portal walls
This commit is contained in:
parent
a1bb6e6b23
commit
dc82c19901
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ void RenderPolyScene::RenderTranslucent(int portalDepth)
|
||||||
args.objectToClip = &WorldToClip;
|
args.objectToClip = &WorldToClip;
|
||||||
args.mode = TriangleDrawMode::Fan;
|
args.mode = TriangleDrawMode::Fan;
|
||||||
args.stenciltestvalue = portal->StencilValue + 1;
|
args.stenciltestvalue = portal->StencilValue + 1;
|
||||||
args.stencilwritevalue = StencilValue;
|
args.stencilwritevalue = StencilValue + 1;
|
||||||
args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w);
|
args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w);
|
||||||
for (const auto &verts : portal->Shape)
|
for (const auto &verts : portal->Shape)
|
||||||
{
|
{
|
||||||
|
@ -295,7 +295,7 @@ void RenderPolyScene::RenderTranslucent(int portalDepth)
|
||||||
args.objectToClip = &WorldToClip;
|
args.objectToClip = &WorldToClip;
|
||||||
args.mode = TriangleDrawMode::Fan;
|
args.mode = TriangleDrawMode::Fan;
|
||||||
args.stenciltestvalue = portal->StencilValue + 1;
|
args.stenciltestvalue = portal->StencilValue + 1;
|
||||||
args.stencilwritevalue = StencilValue;
|
args.stencilwritevalue = StencilValue + 1;
|
||||||
args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w);
|
args.SetClipPlane(PortalPlane.x, PortalPlane.y, PortalPlane.z, PortalPlane.w);
|
||||||
for (const auto &verts : portal->Shape)
|
for (const auto &verts : portal->Shape)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue