- 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:
Rachael Alexanderson 2017-06-19 17:19:44 -04:00
parent 7e292fbfec
commit e290274fb7
3 changed files with 2 additions and 6 deletions

View file

@ -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;
}
}
}

View file

@ -85,7 +85,6 @@ namespace swrenderer
void DrawSegmentList::Push(DrawSegment *segment)
{
segment->bRenewDrawn = false;
Segments.Push(segment);
}

View file

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