2013-06-23 07:49:34 +00:00
|
|
|
/*
|
|
|
|
** gl_sky.cpp
|
|
|
|
** Sky preparation code.
|
|
|
|
**
|
|
|
|
**---------------------------------------------------------------------------
|
|
|
|
** Copyright 2002-2005 Christoph Oelckers
|
|
|
|
** All rights reserved.
|
|
|
|
**
|
|
|
|
** Redistribution and use in source and binary forms, with or without
|
|
|
|
** modification, are permitted provided that the following conditions
|
|
|
|
** are met:
|
|
|
|
**
|
|
|
|
** 1. Redistributions of source code must retain the above copyright
|
|
|
|
** notice, this list of conditions and the following disclaimer.
|
|
|
|
** 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
** notice, this list of conditions and the following disclaimer in the
|
|
|
|
** documentation and/or other materials provided with the distribution.
|
|
|
|
** 3. The name of the author may not be used to endorse or promote products
|
|
|
|
** derived from this software without specific prior written permission.
|
|
|
|
** 4. When not used as part of GZDoom or a GZDoom derivative, this code will be
|
|
|
|
** covered by the terms of the GNU Lesser General Public License as published
|
|
|
|
** by the Free Software Foundation; either version 2.1 of the License, or (at
|
|
|
|
** your option) any later version.
|
|
|
|
** 5. Full disclosure of the entire project's source code, except for third
|
|
|
|
** party libraries is mandatory. (NOTE: This clause is non-negotiable!)
|
|
|
|
**
|
|
|
|
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
**---------------------------------------------------------------------------
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gl/system/gl_system.h"
|
|
|
|
#include "a_sharedglobal.h"
|
|
|
|
#include "g_level.h"
|
|
|
|
#include "r_sky.h"
|
|
|
|
#include "r_state.h"
|
|
|
|
#include "r_utility.h"
|
|
|
|
#include "doomdata.h"
|
2016-02-16 21:01:04 +00:00
|
|
|
#include "portal.h"
|
2013-06-23 07:49:34 +00:00
|
|
|
#include "gl/gl_functions.h"
|
|
|
|
|
|
|
|
#include "gl/data/gl_data.h"
|
|
|
|
#include "gl/renderer/gl_lightdata.h"
|
|
|
|
#include "gl/scene/gl_drawinfo.h"
|
|
|
|
#include "gl/scene/gl_portal.h"
|
|
|
|
#include "gl/textures/gl_material.h"
|
|
|
|
#include "gl/utility/gl_convert.h"
|
|
|
|
|
|
|
|
CVAR(Bool,gl_noskyboxes, false, 0)
|
|
|
|
extern int skyfog;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NoSkyDraw = 89
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-01-11 14:07:58 +00:00
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Set up the skyinfo struct
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
void GLSkyInfo::init(int sky1, PalEntry FadeColor)
|
|
|
|
{
|
|
|
|
memset(this, 0, sizeof(*this));
|
|
|
|
if ((sky1 & PL_SKYFLAT) && (sky1 & (PL_SKYFLAT - 1)))
|
|
|
|
{
|
|
|
|
const line_t *l = &lines[(sky1&(PL_SKYFLAT - 1)) - 1];
|
|
|
|
const side_t *s = l->sidedef[0];
|
|
|
|
int pos;
|
|
|
|
|
|
|
|
if (level.flags & LEVEL_SWAPSKIES && s->GetTexture(side_t::bottom).isValid())
|
|
|
|
{
|
|
|
|
pos = side_t::bottom;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
pos = side_t::top;
|
|
|
|
}
|
|
|
|
|
|
|
|
FTextureID texno = s->GetTexture(pos);
|
|
|
|
texture[0] = FMaterial::ValidateTexture(texno, false, true);
|
|
|
|
if (!texture[0] || texture[0]->tex->UseType == FTexture::TEX_Null) goto normalsky;
|
|
|
|
skytexno1 = texno;
|
2016-03-30 18:01:44 +00:00
|
|
|
x_offset[0] = AngleToFloat(s->GetTextureXOffset(pos));
|
2016-01-11 14:07:58 +00:00
|
|
|
y_offset = FIXED2FLOAT(s->GetTextureYOffset(pos));
|
|
|
|
mirrored = !l->args[2];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
normalsky:
|
|
|
|
if (level.flags&LEVEL_DOUBLESKY)
|
|
|
|
{
|
|
|
|
texture[1] = FMaterial::ValidateTexture(sky1texture, false, true);
|
|
|
|
x_offset[1] = GLRenderer->mSky1Pos;
|
|
|
|
doublesky = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((level.flags&LEVEL_SWAPSKIES || (sky1 == PL_SKYFLAT) || (level.flags&LEVEL_DOUBLESKY)) &&
|
|
|
|
sky2texture != sky1texture) // If both skies are equal use the scroll offset of the first!
|
|
|
|
{
|
|
|
|
texture[0] = FMaterial::ValidateTexture(sky2texture, false, true);
|
|
|
|
skytexno1 = sky2texture;
|
|
|
|
sky2 = true;
|
|
|
|
x_offset[0] = GLRenderer->mSky2Pos;
|
|
|
|
}
|
|
|
|
else if (!doublesky)
|
|
|
|
{
|
|
|
|
texture[0] = FMaterial::ValidateTexture(sky1texture, false, true);
|
|
|
|
skytexno1 = sky1texture;
|
|
|
|
x_offset[0] = GLRenderer->mSky1Pos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (skyfog > 0)
|
|
|
|
{
|
|
|
|
fadecolor = FadeColor;
|
|
|
|
fadecolor.a = 0;
|
|
|
|
}
|
|
|
|
else fadecolor = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-06 04:17:47 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
//==========================================================================
|
|
|
|
//
|
2016-01-11 21:44:53 +00:00
|
|
|
// Calculate sky texture for ceiling or floor
|
2013-06-23 07:49:34 +00:00
|
|
|
//
|
|
|
|
//==========================================================================
|
2016-01-11 21:44:53 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
void GLWall::SkyPlane(sector_t *sector, int plane, bool allowreflect)
|
|
|
|
{
|
2016-02-01 00:49:49 +00:00
|
|
|
int ptype = -1;
|
2013-06-23 07:49:34 +00:00
|
|
|
FPortal *portal = sector->portals[plane];
|
|
|
|
if (portal != NULL)
|
|
|
|
{
|
2016-02-15 12:11:31 +00:00
|
|
|
if (sector->PortalBlocksView(plane)) return;
|
|
|
|
|
2016-01-11 19:29:24 +00:00
|
|
|
if (GLPortal::instack[1 - plane]) return;
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_SECTORSTACK;
|
2013-06-23 07:49:34 +00:00
|
|
|
this->portal = portal;
|
|
|
|
}
|
2016-01-11 19:29:24 +00:00
|
|
|
else
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2015-11-25 10:57:53 +00:00
|
|
|
ASkyViewpoint * skyboxx = sector->GetSkyBox(plane);
|
2016-01-11 19:29:24 +00:00
|
|
|
if (sector->GetTexture(plane) == skyflatnum || (skyboxx != NULL && skyboxx->bAlways))
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-01-11 19:29:24 +00:00
|
|
|
GLSkyInfo skyinfo;
|
|
|
|
|
|
|
|
// JUSTHIT is used as an indicator that a skybox is in use.
|
|
|
|
// This is to avoid recursion
|
|
|
|
|
|
|
|
if (!gl_noskyboxes && skyboxx && GLRenderer->mViewActor != skyboxx && !(skyboxx->flags&MF_JUSTHIT))
|
|
|
|
{
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_SKYBOX;
|
2016-01-11 19:29:24 +00:00
|
|
|
skybox = skyboxx;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
skyinfo.init(sector->sky, Colormap.FadeColor);
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_SKY;
|
2016-01-11 19:29:24 +00:00
|
|
|
sky = UniqueSkies.Get(&skyinfo);
|
|
|
|
}
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
2016-01-11 19:29:24 +00:00
|
|
|
else if (allowreflect && sector->GetReflect(plane) > 0)
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-03-31 07:50:59 +00:00
|
|
|
if ((plane == sector_t::ceiling && FIXED2DBL(viewz) > sector->ceilingplane.fD()) ||
|
|
|
|
(plane == sector_t::floor && FIXED2DBL(viewz) < -sector->floorplane.fD())) return;
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_PLANEMIRROR;
|
2016-01-11 19:29:24 +00:00
|
|
|
planemirror = plane == sector_t::ceiling ? §or->ceilingplane : §or->floorplane;
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
}
|
2016-02-01 00:49:49 +00:00
|
|
|
if (ptype != -1)
|
|
|
|
{
|
|
|
|
PutPortal(ptype);
|
|
|
|
}
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-01-11 21:44:53 +00:00
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Calculate sky texture for a line
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
2016-02-06 04:17:47 +00:00
|
|
|
void GLWall::SkyLine(sector_t *fs, line_t *line)
|
2016-01-11 21:44:53 +00:00
|
|
|
{
|
|
|
|
ASkyViewpoint * skyboxx = line->skybox;
|
|
|
|
GLSkyInfo skyinfo;
|
2016-02-01 00:49:49 +00:00
|
|
|
int ptype;
|
2016-01-11 21:44:53 +00:00
|
|
|
|
|
|
|
// JUSTHIT is used as an indicator that a skybox is in use.
|
|
|
|
// This is to avoid recursion
|
|
|
|
|
2016-02-06 18:19:18 +00:00
|
|
|
if (!gl_noskyboxes && skyboxx && GLRenderer->mViewActor != skyboxx && !(skyboxx->flags&MF_JUSTHIT))
|
2016-01-11 21:44:53 +00:00
|
|
|
{
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_SKYBOX;
|
2016-01-11 21:44:53 +00:00
|
|
|
skybox = skyboxx;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-02-06 04:17:47 +00:00
|
|
|
skyinfo.init(fs->sky, Colormap.FadeColor);
|
2016-02-01 00:49:49 +00:00
|
|
|
ptype = PORTALTYPE_SKY;
|
2016-01-11 21:44:53 +00:00
|
|
|
sky = UniqueSkies.Get(&skyinfo);
|
|
|
|
}
|
2016-02-01 00:49:49 +00:00
|
|
|
PutPortal(ptype);
|
2016-01-11 21:44:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Skies on one sided walls
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
void GLWall::SkyNormal(sector_t * fs,vertex_t * v1,vertex_t * v2)
|
|
|
|
{
|
|
|
|
ztop[0]=ztop[1]=32768.0f;
|
|
|
|
zbottom[0]=zceil[0];
|
|
|
|
zbottom[1]=zceil[1];
|
|
|
|
SkyPlane(fs, sector_t::ceiling, true);
|
|
|
|
|
2016-01-11 21:44:53 +00:00
|
|
|
if (seg->linedef->skybox != NULL)
|
|
|
|
{
|
|
|
|
ztop[0] = zceil[0];
|
|
|
|
ztop[1] = zceil[1];
|
|
|
|
zbottom[0] = zfloor[0];
|
|
|
|
zbottom[1] = zfloor[1];
|
2016-02-06 04:17:47 +00:00
|
|
|
SkyLine(fs, seg->linedef);
|
2016-01-11 21:44:53 +00:00
|
|
|
}
|
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
ztop[0]=zfloor[0];
|
|
|
|
ztop[1]=zfloor[1];
|
|
|
|
zbottom[0]=zbottom[1]=-32768.0f;
|
|
|
|
SkyPlane(fs, sector_t::floor, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Upper Skies on two sided walls
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
void GLWall::SkyTop(seg_t * seg,sector_t * fs,sector_t * bs,vertex_t * v1,vertex_t * v2)
|
|
|
|
{
|
|
|
|
if (fs->GetTexture(sector_t::ceiling)==skyflatnum)
|
|
|
|
{
|
2016-01-11 14:07:58 +00:00
|
|
|
if (bs->special == NoSkyDraw) return;
|
2013-06-23 07:49:34 +00:00
|
|
|
if (bs->GetTexture(sector_t::ceiling)==skyflatnum)
|
|
|
|
{
|
|
|
|
// if the back sector is closed the sky must be drawn!
|
|
|
|
if (bs->ceilingplane.ZatPoint(v1) > bs->floorplane.ZatPoint(v1) ||
|
|
|
|
bs->ceilingplane.ZatPoint(v2) > bs->floorplane.ZatPoint(v2) || bs->transdoor)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// one more check for some ugly transparent door hacks
|
2016-03-29 11:45:50 +00:00
|
|
|
if (!bs->floorplane.isSlope() && !fs->floorplane.isSlope())
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
|
|
|
if (bs->GetPlaneTexZ(sector_t::floor)==fs->GetPlaneTexZ(sector_t::floor)+FRACUNIT)
|
|
|
|
{
|
|
|
|
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::bottom));
|
|
|
|
if (!tex || tex->UseType==FTexture::TEX_Null) return;
|
|
|
|
|
|
|
|
// very, very, very ugly special case (See Icarus MAP14)
|
|
|
|
// It is VERY important that this is only done for a floor height difference of 1
|
|
|
|
// or it will cause glitches elsewhere.
|
|
|
|
tex = TexMan(seg->sidedef->GetTexture(side_t::mid));
|
|
|
|
if (tex != NULL && !(seg->linedef->flags & ML_DONTPEGTOP) &&
|
|
|
|
seg->sidedef->GetTextureYOffset(side_t::mid) > 0)
|
|
|
|
{
|
|
|
|
ztop[0]=ztop[1]=32768.0f;
|
|
|
|
zbottom[0]=zbottom[1]=
|
2016-03-30 18:01:44 +00:00
|
|
|
bs->ceilingplane.ZatPoint(v2) + seg->sidedef->GetTextureYOffsetF(side_t::mid);
|
2013-06-23 07:49:34 +00:00
|
|
|
SkyPlane(fs, sector_t::ceiling, false);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ztop[0]=ztop[1]=32768.0f;
|
|
|
|
|
|
|
|
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::top));
|
|
|
|
if (bs->GetTexture(sector_t::ceiling) != skyflatnum)
|
|
|
|
|
|
|
|
{
|
|
|
|
zbottom[0]=zceil[0];
|
|
|
|
zbottom[1]=zceil[1];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-03-30 18:01:44 +00:00
|
|
|
zbottom[0] = bs->ceilingplane.ZatPoint(v1);
|
|
|
|
zbottom[1] = bs->ceilingplane.ZatPoint(v2);
|
2013-06-23 07:49:34 +00:00
|
|
|
flags|=GLWF_SKYHACK; // mid textures on such lines need special treatment!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
float frontreflect = fs->GetReflect(sector_t::ceiling);
|
|
|
|
if (frontreflect > 0)
|
|
|
|
{
|
|
|
|
float backreflect = bs->GetReflect(sector_t::ceiling);
|
2016-03-29 11:45:50 +00:00
|
|
|
if (backreflect > 0 && bs->ceilingplane.fD() == fs->ceilingplane.fD())
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
|
|
|
// Don't add intra-portal line to the portal.
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2016-02-15 12:11:31 +00:00
|
|
|
else
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-02-15 12:11:31 +00:00
|
|
|
FPortal *pfront = fs->portals[sector_t::ceiling];
|
|
|
|
FPortal *pback = bs->portals[sector_t::ceiling];
|
|
|
|
if (pfront == NULL || fs->PortalBlocksView(sector_t::ceiling)) return;
|
|
|
|
if (pfront == pback && !bs->PortalBlocksView(sector_t::ceiling)) return;
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// stacked sectors
|
2016-03-30 18:01:44 +00:00
|
|
|
ztop[0] = ztop[1] = 32768.0f;
|
|
|
|
zbottom[0] = fs->ceilingplane.ZatPoint(v1);
|
|
|
|
zbottom[1] = fs->ceilingplane.ZatPoint(v2);
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SkyPlane(fs, sector_t::ceiling, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Lower Skies on two sided walls
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
void GLWall::SkyBottom(seg_t * seg,sector_t * fs,sector_t * bs,vertex_t * v1,vertex_t * v2)
|
|
|
|
{
|
|
|
|
if (fs->GetTexture(sector_t::floor)==skyflatnum)
|
|
|
|
{
|
2016-01-11 14:07:58 +00:00
|
|
|
if (bs->special == NoSkyDraw) return;
|
2013-06-23 07:49:34 +00:00
|
|
|
FTexture * tex = TexMan(seg->sidedef->GetTexture(side_t::bottom));
|
|
|
|
|
|
|
|
// For lower skies the normal logic only applies to walls with no lower texture!
|
|
|
|
if (tex->UseType==FTexture::TEX_Null)
|
|
|
|
{
|
|
|
|
if (bs->GetTexture(sector_t::floor)==skyflatnum)
|
|
|
|
{
|
|
|
|
// if the back sector is closed the sky must be drawn!
|
|
|
|
if (bs->ceilingplane.ZatPoint(v1) > bs->floorplane.ZatPoint(v1) ||
|
|
|
|
bs->ceilingplane.ZatPoint(v2) > bs->floorplane.ZatPoint(v2))
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Special hack for Vrack2b
|
|
|
|
if (bs->floorplane.ZatPoint(FIXED2FLOAT(viewx), FIXED2FLOAT(viewy)) > FIXED2FLOAT(viewz)) return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
zbottom[0]=zbottom[1]=-32768.0f;
|
|
|
|
|
|
|
|
if ((tex && tex->UseType!=FTexture::TEX_Null) || bs->GetTexture(sector_t::floor)!=skyflatnum)
|
|
|
|
{
|
|
|
|
ztop[0]=zfloor[0];
|
|
|
|
ztop[1]=zfloor[1];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-03-30 18:01:44 +00:00
|
|
|
ztop[0] = bs->floorplane.ZatPoint(v1);
|
|
|
|
ztop[1] = bs->floorplane.ZatPoint(v2);
|
2013-06-23 07:49:34 +00:00
|
|
|
flags|=GLWF_SKYHACK; // mid textures on such lines need special treatment!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
float frontreflect = fs->GetReflect(sector_t::floor);
|
|
|
|
if (frontreflect > 0)
|
|
|
|
{
|
|
|
|
float backreflect = bs->GetReflect(sector_t::floor);
|
2016-03-29 11:45:50 +00:00
|
|
|
if (backreflect > 0 && bs->floorplane.fD() == fs->floorplane.fD())
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
|
|
|
// Don't add intra-portal line to the portal.
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2016-02-15 12:11:31 +00:00
|
|
|
else
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-02-15 12:11:31 +00:00
|
|
|
FPortal *pfront = fs->portals[sector_t::floor];
|
|
|
|
FPortal *pback = bs->portals[sector_t::floor];
|
|
|
|
if (pfront == NULL || fs->PortalBlocksView(sector_t::floor)) return;
|
|
|
|
if (pfront == pback && !bs->PortalBlocksView(sector_t::floor)) return;
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// stacked sectors
|
|
|
|
zbottom[0]=zbottom[1]=-32768.0f;
|
2016-03-30 18:01:44 +00:00
|
|
|
ztop[0] = fs->floorplane.ZatPoint(v1);
|
|
|
|
ztop[1] = fs->floorplane.ZatPoint(v2);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SkyPlane(fs, sector_t::floor, true);
|
|
|
|
}
|
|
|
|
|