1
0
Fork 0
forked from fte/fteqw

fixed software skybox rendering

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2293 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-05-20 04:14:18 +00:00
parent ef0e99b312
commit f375d5d6ac
3 changed files with 5 additions and 6 deletions

View file

@ -107,7 +107,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// !!! if this is changed, it must be changed in model.h too !!!
#define me_v 0
#define me_cachededgeoffset 4
#define me_size 8
// mvertex_t structure
// !!! if this is changed, it must be changed in model.h too !!!

View file

@ -298,6 +298,7 @@ void D_DrawSurfaces (void)
}
cacheblock = (qbyte *)pface->texinfo->texture + pface->texinfo->texture->offsets[0];
cachewidth = 256;
cacheheight = 256;
d_zistepu = s->d_zistepu;
d_zistepv = s->d_zistepv;
@ -309,7 +310,6 @@ void D_DrawSurfaces (void)
D_DrawSpans16From8(s->spans);
else
(*d_drawspans) (s->spans);
// D_DrawSolidSurface (s, (int)15);
// set up a gradient for the background surface that places it
// effectively at infinity distance from the viewpoint

View file

@ -243,14 +243,14 @@ void R_InitSkyBox (void)
for (i=0 ; i<24 ; i++)
if (box_surfedges[i] > 0)
r_skysurfedges[i] = wm->numedges-12 + box_surfedges[i];
r_skysurfedges[i] = wm->numedges - 1 + box_surfedges[i];
else
r_skysurfedges[i] = - (wm->numedges-12 + -box_surfedges[i]);
r_skysurfedges[i] = -(wm->numedges - 1 + -box_surfedges[i]);
for(i=0 ; i<12 ; i++)
{
r_skyedges[i].v[0] = wm->numvertexes-8+box_edges[i*2+0];
r_skyedges[i].v[1] = wm->numvertexes-8+box_edges[i*2+1];
r_skyedges[i].v[0] = wm->numvertexes-1+box_edges[i*2+0];
r_skyedges[i].v[1] = wm->numvertexes-1+box_edges[i*2+1];
r_skyedges[i].cachededgeoffset = 0;
}