mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed: Now fully fixed the 3d floor + fog boundary issue.
- Revert "- Partially fixed the 3d floors + fogboundary issue. There's still an issue when a sprite appears in front of a fog boundary, but because this is already a huge visual improvement I am going to go ahead and push this."
This reverts commit 7e292fbfec
.
This commit is contained in:
parent
7e292fbfec
commit
e290274fb7
3 changed files with 2 additions and 6 deletions
|
@ -163,12 +163,10 @@ namespace swrenderer
|
|||
if (ds->fake) continue;
|
||||
if (ds->maskedtexturecol != nullptr || ds->bFogBoundary)
|
||||
{
|
||||
if (renew && ds->bRenewDrawn)
|
||||
continue;
|
||||
RenderDrawSegment renderer(Thread);
|
||||
renderer.Render(ds, ds->x1, ds->x2);
|
||||
if (renew && ds->bFogBoundary)
|
||||
ds->bRenewDrawn = true;
|
||||
if (renew && ds->bFogBoundary) // don't draw fogboundary again
|
||||
ds->bFogBoundary = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,7 +85,6 @@ namespace swrenderer
|
|||
|
||||
void DrawSegmentList::Push(DrawSegment *segment)
|
||||
{
|
||||
segment->bRenewDrawn = false;
|
||||
Segments.Push(segment);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ namespace swrenderer
|
|||
uint8_t silhouette; // 0=none, 1=bottom, 2=top, 3=both
|
||||
uint8_t bFogBoundary;
|
||||
uint8_t bFakeBoundary; // for fake walls
|
||||
bool bRenewDrawn;
|
||||
int shade;
|
||||
bool foggy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue