mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- Add support for drawing decals on 3d floors in softpoly
This commit is contained in:
parent
43fc5633af
commit
17108e575a
1 changed files with 6 additions and 1 deletions
|
@ -67,8 +67,13 @@ void RenderPolyDecal::Render(const TriMatrix &worldToClip, const PolyClipPlane &
|
|||
|
||||
// Determine actor z
|
||||
double zpos = decal->Z;
|
||||
sector_t *front = line->frontsector;
|
||||
sector_t *back = (line->backsector != nullptr) ? line->backsector : line->frontsector;
|
||||
|
||||
// for 3d-floor segments use the model sector as reference
|
||||
sector_t *front;
|
||||
if ((decal->RenderFlags&RF_CLIPMASK) == RF_CLIPMID) front = decal->Sector;
|
||||
else front = line->frontsector;
|
||||
|
||||
switch (decal->RenderFlags & RF_RELMASK)
|
||||
{
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue