mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
- Add polyobj support to softpoly
This commit is contained in:
parent
5736345e54
commit
f7d1a2a574
1 changed files with 20 additions and 0 deletions
|
@ -70,6 +70,26 @@ void PolyCull::CullNode(void *node)
|
||||||
|
|
||||||
void PolyCull::CullSubsector(subsector_t *sub)
|
void PolyCull::CullSubsector(subsector_t *sub)
|
||||||
{
|
{
|
||||||
|
// Mark poly objects first
|
||||||
|
if (sub->polys)
|
||||||
|
{
|
||||||
|
if (sub->BSP == nullptr || sub->BSP->bDirty)
|
||||||
|
{
|
||||||
|
sub->BuildPolyBSP();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sub->BSP->Nodes.Size() == 0)
|
||||||
|
{
|
||||||
|
CullSubsector(&sub->BSP->Subsectors[0]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CullNode(&sub->BSP->Nodes.Last());
|
||||||
|
}
|
||||||
|
|
||||||
|
return; // Hmm, seems a bit strange the subsector is then ignored. But that's what the sw renderer seems to be doing..
|
||||||
|
}
|
||||||
|
|
||||||
// Update sky heights for the scene
|
// Update sky heights for the scene
|
||||||
if (!FirstSkyHeight)
|
if (!FirstSkyHeight)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue