gl_sky_clip is getting closer to working with skybox. Textures are borked (not

sure if I'm doing something wrong or if gl is having problems with the scale)
and clipping is a little wonky, but I know the reason for that:) Also, it
seems skys aren't always being drawn: probably something wrong in gl_rsurf.
This commit is contained in:
Bill Currie 2000-11-10 16:26:40 +00:00
parent 1d4c83b5bb
commit 7bd99717d2
2 changed files with 72 additions and 19 deletions

View file

@ -931,15 +931,15 @@ void R_RecursiveWorldNode (mnode_t *node)
if (surf->visframe != r_framecount)
continue;
if ((dot < 0) ^ !!(surf->flags & SURF_PLANEBACK))
continue; // wrong side
if (surf->flags & SURF_DRAWSKY) {
surf->texturechain = sky_chain;
sky_chain = surf;
continue;
}
if ((dot < 0) ^ !!(surf->flags & SURF_PLANEBACK))
continue; // wrong side
if (surf->flags & SURF_DRAWTURB)
{
surf->texturechain = waterchain;