mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Don't propagate light through sealed portals.
git-svn-id: https://svn.eduke32.com/eduke32@1318 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8cd5bb68d0
commit
dfd2a379b1
1 changed files with 8 additions and 0 deletions
|
@ -3865,6 +3865,14 @@ static inline void polymer_culllight(char lightindex)
|
|||
light->isinview = 1;
|
||||
}
|
||||
if (polymer_planeinlight(&w->mask, light)) {
|
||||
if ((w->mask.vertcount == 4) &&
|
||||
(w->mask.buffer[(0 * 5) + 1] >= w->mask.buffer[(3 * 5) + 1]) &&
|
||||
(w->mask.buffer[(1 * 5) + 1] >= w->mask.buffer[(2 * 5) + 1]))
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
w->mask.lights[w->mask.lightcount] = lightindex;
|
||||
w->mask.lightcount++;
|
||||
if (w->mask.drawn)
|
||||
|
|
Loading…
Reference in a new issue