mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
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:
parent
1d4c83b5bb
commit
7bd99717d2
2 changed files with 72 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue