mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-11 14:50:39 +00:00
so long as you're using skydome, gl_sky_clip is now a usefull speadup. it just
renders the sky as black (for now)
This commit is contained in:
parent
d31a9f73de
commit
f8343a2707
1 changed files with 17 additions and 1 deletions
|
@ -286,6 +286,18 @@ R_DrawSkyBoxPoly (glpoly_t *poly)
|
||||||
void
|
void
|
||||||
R_DrawSkyDomePoly (glpoly_t *poly)
|
R_DrawSkyDomePoly (glpoly_t *poly)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
glDisable (GL_BLEND);
|
||||||
|
glDisable (GL_TEXTURE_2D);
|
||||||
|
glColor3f (0, 0, 0);
|
||||||
|
glBegin (GL_POLYGON);
|
||||||
|
for (i=0; i<poly->numverts; i++) {
|
||||||
|
glVertex3fv (poly->verts[i]);
|
||||||
|
}
|
||||||
|
glEnd ();
|
||||||
|
glEnable (GL_TEXTURE_2D);
|
||||||
|
glEnable (GL_BLEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -298,7 +310,11 @@ R_DrawSkyChain (msurface_t *sky_chain)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while (sky_chain) {
|
while (sky_chain) {
|
||||||
R_DrawSkyDomePoly (sky_chain->polys);
|
glpoly_t *p = sky_chain->polys;
|
||||||
|
while (p) {
|
||||||
|
R_DrawSkyDomePoly (p);
|
||||||
|
p = p->next;
|
||||||
|
}
|
||||||
sky_chain = sky_chain->texturechain;
|
sky_chain = sky_chain->texturechain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue