mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Connect wall.blend to Polymost in Lunatic builds with it enabled.
git-svn-id: https://svn.eduke32.com/eduke32@6275 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9286a4d40e
commit
610d2e3b46
1 changed files with 11 additions and 2 deletions
|
@ -4130,6 +4130,16 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
|
|||
if (wal->cstat & 128)
|
||||
method = DAMETH_WALL | (((wal->cstat & 512)) ? DAMETH_TRANS2 : DAMETH_TRANS1);
|
||||
|
||||
#ifdef NEW_MAP_FORMAT
|
||||
uint8_t const blend = wal->blend;
|
||||
#else
|
||||
uint8_t const blend = 0;
|
||||
#endif
|
||||
handle_blend(!!(wal->cstat & 128), blend, !!(wal->cstat & 512));
|
||||
|
||||
drawpoly_alpha = 0.f;
|
||||
drawpoly_blend = blend;
|
||||
|
||||
calc_and_apply_fog(wal->picnum, fogpal_shade(sec, wal->shade), sec->visibility, get_floor_fogpal(sec));
|
||||
|
||||
float const csy[4] = { ((float)(cz[0] - globalposz)) * ryp0 + ghoriz,
|
||||
|
@ -4219,8 +4229,7 @@ void polymost_drawmaskwall(int32_t damaskwallcnt)
|
|||
|
||||
pow2xsplit = 0;
|
||||
skyclamphack = 0;
|
||||
drawpoly_alpha = 0.f;
|
||||
drawpoly_blend = 0;
|
||||
|
||||
polymost_drawpoly(dpxy, n, method);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue