2013-06-23 07:49:34 +00:00
|
|
|
/*
|
|
|
|
** gl_decal.cpp
|
|
|
|
** OpenGL decal rendering code
|
|
|
|
**
|
|
|
|
**---------------------------------------------------------------------------
|
|
|
|
** Copyright 2003-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 "doomdata.h"
|
|
|
|
#include "gl/system/gl_system.h"
|
|
|
|
#include "a_sharedglobal.h"
|
|
|
|
#include "r_utility.h"
|
|
|
|
|
|
|
|
#include "gl/system/gl_cvars.h"
|
|
|
|
#include "gl/data/gl_data.h"
|
2014-05-12 20:46:30 +00:00
|
|
|
#include "gl/data/gl_vertexbuffer.h"
|
2013-06-23 07:49:34 +00:00
|
|
|
#include "gl/renderer/gl_renderer.h"
|
|
|
|
#include "gl/renderer/gl_lightdata.h"
|
|
|
|
#include "gl/renderer/gl_renderstate.h"
|
|
|
|
#include "gl/scene/gl_drawinfo.h"
|
|
|
|
#include "gl/shaders/gl_shader.h"
|
|
|
|
#include "gl/textures/gl_texture.h"
|
|
|
|
#include "gl/textures/gl_material.h"
|
|
|
|
#include "gl/utility/gl_clock.h"
|
|
|
|
|
|
|
|
struct DecalVertex
|
|
|
|
{
|
|
|
|
float x,y,z;
|
|
|
|
float u,v;
|
|
|
|
};
|
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
void GLWall::DrawDecal(DBaseDecal *decal)
|
|
|
|
{
|
|
|
|
line_t * line=seg->linedef;
|
|
|
|
side_t * side=seg->sidedef;
|
|
|
|
int i;
|
2016-03-22 22:19:21 +00:00
|
|
|
float zpos;
|
2013-06-23 07:49:34 +00:00
|
|
|
int light;
|
|
|
|
int rel;
|
|
|
|
float a;
|
2014-05-11 17:44:19 +00:00
|
|
|
bool flipx, flipy;
|
2013-06-23 07:49:34 +00:00
|
|
|
DecalVertex dv[4];
|
|
|
|
FTextureID decalTile;
|
|
|
|
|
|
|
|
|
|
|
|
if (decal->RenderFlags & RF_INVISIBLE) return;
|
|
|
|
if (type==RENDERWALL_FFBLOCK && gltexture->isMasked()) return; // No decals on 3D floors with transparent textures.
|
|
|
|
|
|
|
|
//if (decal->sprite != 0xffff)
|
|
|
|
{
|
|
|
|
decalTile = decal->PicNum;
|
|
|
|
flipx = !!(decal->RenderFlags & RF_XFLIP);
|
|
|
|
flipy = !!(decal->RenderFlags & RF_YFLIP);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
else
|
|
|
|
{
|
|
|
|
decalTile = SpriteFrames[sprites[decal->sprite].spriteframes + decal->frame].lump[0];
|
|
|
|
flipx = SpriteFrames[sprites[decal->sprite].spriteframes + decal->frame].flip & 1;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
FTexture *texture = TexMan[decalTile];
|
|
|
|
if (texture == NULL) return;
|
|
|
|
|
|
|
|
FMaterial *tex;
|
|
|
|
|
|
|
|
|
2014-08-22 21:50:38 +00:00
|
|
|
tex = FMaterial::ValidateTexture(texture, true);
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
// the sectors are only used for their texture origin coordinates
|
|
|
|
// so we don't need the fake sectors for deep water etc.
|
|
|
|
// As this is a completely split wall fragment no further splits are
|
|
|
|
// necessary for the decal.
|
|
|
|
sector_t *frontsector;
|
|
|
|
|
|
|
|
// for 3d-floor segments use the model sector as reference
|
|
|
|
if ((decal->RenderFlags&RF_CLIPMASK)==RF_CLIPMID) frontsector=decal->Sector;
|
|
|
|
else frontsector=seg->frontsector;
|
|
|
|
|
|
|
|
switch (decal->RenderFlags & RF_RELMASK)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
// No valid decal can have this type. If one is encountered anyway
|
|
|
|
// it is in some way invalid so skip it.
|
|
|
|
return;
|
|
|
|
//zpos = decal->z;
|
|
|
|
//break;
|
|
|
|
|
|
|
|
case RF_RELUPPER:
|
|
|
|
if (type!=RENDERWALL_TOP) return;
|
|
|
|
if (line->flags & ML_DONTPEGTOP)
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + frontsector->GetPlaneTexZF(sector_t::ceiling);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + seg->backsector->GetPlaneTexZF(sector_t::ceiling);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case RF_RELLOWER:
|
|
|
|
if (type!=RENDERWALL_BOTTOM) return;
|
|
|
|
if (line->flags & ML_DONTPEGBOTTOM)
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + frontsector->GetPlaneTexZF(sector_t::ceiling);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + seg->backsector->GetPlaneTexZF(sector_t::floor);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case RF_RELMID:
|
|
|
|
if (type==RENDERWALL_TOP || type==RENDERWALL_BOTTOM) return;
|
|
|
|
if (line->flags & ML_DONTPEGBOTTOM)
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + frontsector->GetPlaneTexZF(sector_t::floor);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos = decal->Z + frontsector->GetPlaneTexZF(sector_t::ceiling);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (decal->RenderFlags & RF_FULLBRIGHT)
|
|
|
|
{
|
|
|
|
light = 255;
|
|
|
|
rel = 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
light = lightlevel;
|
|
|
|
rel = rellight + getExtraLight();
|
|
|
|
}
|
|
|
|
|
|
|
|
FColormap p = Colormap;
|
|
|
|
|
|
|
|
if (glset.nocoloredspritelighting)
|
|
|
|
{
|
2014-05-11 20:57:42 +00:00
|
|
|
p.Decolorize();
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-22 22:19:21 +00:00
|
|
|
a = decal->Alpha;
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
// now clip the decal to the actual polygon
|
2016-03-22 22:19:21 +00:00
|
|
|
float decalwidth = tex->TextureWidth() * decal->ScaleX;
|
|
|
|
float decalheight= tex->TextureHeight() * decal->ScaleY;
|
|
|
|
float decallefto = tex->GetLeftOffset() * decal->ScaleX;
|
|
|
|
float decaltopo = tex->GetTopOffset() * decal->ScaleY;
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
float leftedge = glseg.fracleft * side->TexelLength;
|
|
|
|
float linelength = glseg.fracright * side->TexelLength - leftedge;
|
|
|
|
|
|
|
|
// texel index of the decal's left edge
|
2016-03-22 22:19:21 +00:00
|
|
|
float decalpixpos = (float)side->TexelLength * decal->LeftDistance - (flipx? decalwidth-decallefto : decallefto) - leftedge;
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
float left,right;
|
|
|
|
float lefttex,righttex;
|
|
|
|
|
|
|
|
// decal is off the left edge
|
|
|
|
if (decalpixpos < 0)
|
|
|
|
{
|
|
|
|
left = 0;
|
|
|
|
lefttex = -decalpixpos;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
left = decalpixpos;
|
|
|
|
lefttex = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// decal is off the right edge
|
|
|
|
if (decalpixpos + decalwidth > linelength)
|
|
|
|
{
|
|
|
|
right = linelength;
|
|
|
|
righttex = right - decalpixpos;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
right = decalpixpos + decalwidth;
|
|
|
|
righttex = decalwidth;
|
|
|
|
}
|
|
|
|
if (right<=left) return; // nothing to draw
|
|
|
|
|
|
|
|
// one texture unit on the wall as vector
|
|
|
|
float vx=(glseg.x2-glseg.x1)/linelength;
|
|
|
|
float vy=(glseg.y2-glseg.y1)/linelength;
|
|
|
|
|
|
|
|
dv[1].x=dv[0].x=glseg.x1+vx*left;
|
|
|
|
dv[1].y=dv[0].y=glseg.y1+vy*left;
|
|
|
|
|
|
|
|
dv[3].x=dv[2].x=glseg.x1+vx*right;
|
|
|
|
dv[3].y=dv[2].y=glseg.y1+vy*right;
|
|
|
|
|
2016-03-22 22:19:21 +00:00
|
|
|
zpos+= (flipy? decalheight-decaltopo : decaltopo);
|
2013-06-23 07:49:34 +00:00
|
|
|
|
2016-03-22 22:19:21 +00:00
|
|
|
dv[1].z=dv[2].z = zpos;
|
2013-06-23 07:49:34 +00:00
|
|
|
dv[0].z=dv[3].z = dv[1].z - decalheight;
|
|
|
|
dv[1].v=dv[2].v = tex->GetVT();
|
|
|
|
|
2016-03-22 22:19:21 +00:00
|
|
|
dv[1].u=dv[0].u = tex->GetU(lefttex / decal->ScaleX);
|
|
|
|
dv[3].u=dv[2].u = tex->GetU(righttex / decal->ScaleX);
|
2013-06-23 07:49:34 +00:00
|
|
|
dv[0].v=dv[3].v = tex->GetVB();
|
|
|
|
|
|
|
|
|
|
|
|
// now clip to the top plane
|
|
|
|
float vzt=(ztop[1]-ztop[0])/linelength;
|
|
|
|
float topleft=this->ztop[0]+vzt*left;
|
|
|
|
float topright=this->ztop[0]+vzt*right;
|
|
|
|
|
|
|
|
// completely below the wall
|
|
|
|
if (topleft<dv[0].z && topright<dv[3].z)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (topleft<dv[1].z || topright<dv[2].z)
|
|
|
|
{
|
|
|
|
// decal has to be clipped at the top
|
|
|
|
// let texture clamping handle all extreme cases
|
|
|
|
dv[1].v=(dv[1].z-topleft)/(dv[1].z-dv[0].z)*dv[0].v;
|
|
|
|
dv[2].v=(dv[2].z-topright)/(dv[2].z-dv[3].z)*dv[3].v;
|
|
|
|
dv[1].z=topleft;
|
|
|
|
dv[2].z=topright;
|
|
|
|
}
|
|
|
|
|
|
|
|
// now clip to the bottom plane
|
|
|
|
float vzb=(zbottom[1]-zbottom[0])/linelength;
|
|
|
|
float bottomleft=this->zbottom[0]+vzb*left;
|
|
|
|
float bottomright=this->zbottom[0]+vzb*right;
|
|
|
|
|
|
|
|
// completely above the wall
|
|
|
|
if (bottomleft>dv[1].z && bottomright>dv[2].z)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (bottomleft>dv[0].z || bottomright>dv[3].z)
|
|
|
|
{
|
|
|
|
// decal has to be clipped at the bottom
|
|
|
|
// let texture clamping handle all extreme cases
|
|
|
|
dv[0].v=(dv[1].z-bottomleft)/(dv[1].z-dv[0].z)*(dv[0].v-dv[1].v) + dv[1].v;
|
|
|
|
dv[3].v=(dv[2].z-bottomright)/(dv[2].z-dv[3].z)*(dv[3].v-dv[2].v) + dv[2].v;
|
|
|
|
dv[0].z=bottomleft;
|
|
|
|
dv[3].z=bottomright;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (flipx)
|
|
|
|
{
|
|
|
|
float ur = tex->GetUR();
|
|
|
|
for(i=0;i<4;i++) dv[i].u=ur-dv[i].u;
|
|
|
|
}
|
|
|
|
if (flipy)
|
|
|
|
{
|
|
|
|
float vb = tex->GetVB();
|
|
|
|
for(i=0;i<4;i++) dv[i].v=vb-dv[i].v;
|
|
|
|
}
|
|
|
|
|
2014-05-11 17:44:19 +00:00
|
|
|
// calculate dynamic light effect.
|
|
|
|
if (gl_lights && GLRenderer->mLightCount && !gl_fixedcolormap && gl_light_sprites)
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2014-05-11 17:44:19 +00:00
|
|
|
// Note: This should be replaced with proper shader based lighting.
|
2016-03-22 22:19:21 +00:00
|
|
|
double x, y;
|
2014-05-11 17:44:19 +00:00
|
|
|
decal->GetXY(seg->sidedef, x, y);
|
|
|
|
gl_SetDynSpriteLight(NULL, x, y, zpos, sub);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
2014-05-11 17:44:19 +00:00
|
|
|
|
|
|
|
// alpha color only has an effect when using an alpha texture.
|
|
|
|
if (decal->RenderStyle.Flags & STYLEF_RedIsAlpha)
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2014-10-26 14:11:04 +00:00
|
|
|
gl_RenderState.SetObjectColor(decal->AlphaColor|0xff000000);
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
|
2014-05-11 17:44:19 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
gl_SetRenderStyle(decal->RenderStyle, false, false);
|
2014-09-09 10:00:42 +00:00
|
|
|
gl_RenderState.SetMaterial(tex, CLAMP_XY, decal->Translation, 0, !!(decal->RenderStyle.Flags & STYLEF_RedIsAlpha));
|
2014-05-11 17:44:19 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
|
|
|
|
// If srcalpha is one it looks better with a higher alpha threshold
|
2014-07-14 19:14:43 +00:00
|
|
|
if (decal->RenderStyle.SrcAlpha == STYLEALPHA_One) gl_RenderState.AlphaFunc(GL_GEQUAL, gl_mask_sprite_threshold);
|
2013-06-23 07:49:34 +00:00
|
|
|
else gl_RenderState.AlphaFunc(GL_GREATER, 0.f);
|
|
|
|
|
2016-02-01 20:45:26 +00:00
|
|
|
|
|
|
|
gl_SetColor(light, rel, p, a);
|
|
|
|
// for additively drawn decals we must temporarily set the fog color to black.
|
|
|
|
PalEntry fc = gl_RenderState.GetFogColor();
|
|
|
|
if (decal->RenderStyle.BlendOp == STYLEOP_Add && decal->RenderStyle.DestAlpha == STYLEALPHA_One)
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-02-01 20:45:26 +00:00
|
|
|
gl_RenderState.SetFog(0,-1);
|
|
|
|
}
|
2016-02-01 20:50:55 +00:00
|
|
|
|
|
|
|
FFlatVertex *ptr = GLRenderer->mVBO->GetBuffer();
|
|
|
|
for (i = 0; i < 4; i++)
|
|
|
|
{
|
|
|
|
ptr->Set(dv[i].x, dv[i].z, dv[i].y, dv[i].u, dv[i].v);
|
|
|
|
ptr++;
|
|
|
|
}
|
|
|
|
|
2016-02-01 20:45:26 +00:00
|
|
|
if (lightlist == NULL)
|
|
|
|
{
|
|
|
|
gl_RenderState.Apply();
|
|
|
|
GLRenderer->mVBO->RenderCurrent(ptr, GL_TRIANGLE_FAN);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-02-01 20:50:55 +00:00
|
|
|
unsigned int offset;
|
|
|
|
unsigned int count = GLRenderer->mVBO->GetCount(ptr, &offset);
|
2016-02-01 20:45:26 +00:00
|
|
|
for (unsigned k = 0; k < lightlist->Size(); k++)
|
|
|
|
{
|
|
|
|
secplane_t &lowplane = k == (*lightlist).Size() - 1 ? bottomplane : (*lightlist)[k + 1].plane;
|
|
|
|
|
2016-02-03 12:03:38 +00:00
|
|
|
float low1 = lowplane.ZatPoint(dv[1].x, dv[1].y);
|
2016-02-01 20:45:26 +00:00
|
|
|
float low2 = lowplane.ZatPoint(dv[2].x, dv[2].y);
|
|
|
|
|
2016-02-04 00:12:18 +00:00
|
|
|
if (low1 < dv[1].z || low2 < dv[2].z)
|
2016-02-01 20:45:26 +00:00
|
|
|
{
|
|
|
|
int thisll = (*lightlist)[k].caster != NULL ? gl_ClampLight(*(*lightlist)[k].p_lightlevel) : lightlevel;
|
|
|
|
FColormap thiscm;
|
|
|
|
thiscm.FadeColor = Colormap.FadeColor;
|
|
|
|
thiscm.CopyFrom3DLight(&(*lightlist)[k]);
|
|
|
|
gl_SetColor(thisll, rel, thiscm, a);
|
|
|
|
if (glset.nocoloredspritelighting) thiscm.Decolorize();
|
|
|
|
gl_SetFog(thisll, rel, &thiscm, RenderStyle == STYLE_Add);
|
|
|
|
gl_RenderState.SetSplitPlanes((*lightlist)[k].plane, lowplane);
|
|
|
|
|
|
|
|
gl_RenderState.Apply();
|
2016-02-01 20:50:55 +00:00
|
|
|
GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, offset, count);
|
2016-02-01 20:45:26 +00:00
|
|
|
}
|
|
|
|
if (low1 <= dv[0].z && low2 <= dv[3].z) break;
|
|
|
|
}
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
2014-06-14 23:14:41 +00:00
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
rendered_decals++;
|
2014-05-11 17:44:19 +00:00
|
|
|
gl_RenderState.SetTextureMode(TM_MODULATE);
|
|
|
|
gl_RenderState.SetObjectColor(0xffffffff);
|
2013-06-23 07:49:34 +00:00
|
|
|
gl_RenderState.SetFog(fc,-1);
|
|
|
|
gl_RenderState.SetDynLight(0,0,0);
|
|
|
|
}
|
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
void GLWall::DoDrawDecals()
|
|
|
|
{
|
2014-08-30 13:34:14 +00:00
|
|
|
if (seg->sidedef && seg->sidedef->AttachedDecals)
|
2013-06-23 07:49:34 +00:00
|
|
|
{
|
2016-02-01 20:45:26 +00:00
|
|
|
if (lightlist != NULL)
|
|
|
|
{
|
|
|
|
gl_RenderState.EnableSplit(true);
|
|
|
|
glEnable(GL_CLIP_DISTANCE3);
|
|
|
|
glEnable(GL_CLIP_DISTANCE4);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
gl_SetFog(lightlevel, rellight + getExtraLight(), &Colormap, false);
|
|
|
|
}
|
|
|
|
|
2014-08-30 13:34:14 +00:00
|
|
|
DBaseDecal *decal = seg->sidedef->AttachedDecals;
|
|
|
|
while (decal)
|
|
|
|
{
|
|
|
|
DrawDecal(decal);
|
|
|
|
decal = decal->WallNext;
|
|
|
|
}
|
2016-02-01 20:45:26 +00:00
|
|
|
|
|
|
|
if (lightlist != NULL)
|
|
|
|
{
|
|
|
|
glDisable(GL_CLIP_DISTANCE3);
|
|
|
|
glDisable(GL_CLIP_DISTANCE4);
|
|
|
|
gl_RenderState.EnableSplit(false);
|
|
|
|
}
|
|
|
|
|
2013-06-23 07:49:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|