From 9f6b0bf758ff5ce76cfe84a22daf916126241c2d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 25 Dec 2000 03:38:48 +0000 Subject: [PATCH] put my sky alpha trick into a safe place. currently disabled because while it works, it's not the right place. --- source/gl_sky_clip.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/gl_sky_clip.c b/source/gl_sky_clip.c index d0508fb..b6e3b77 100644 --- a/source/gl_sky_clip.c +++ b/source/gl_sky_clip.c @@ -673,6 +673,25 @@ R_DrawSkyChain (msurface_t *sky_chain) sc = sc->texturechain; } } +#if 0 + // seems to work, but this is the wrong place to do it. + glColor4f (1,1,1,0); + sc = sky_chain; + while (sc) { + glpoly_t *p = sc->polys; + + while (p) { + int i; + glBegin (GL_POLYGON); + for (i = 0; i < p->numverts; i++) { + glVertex3fv (p->verts[i]); + } + glEnd (); + p = p->next; + } + sc = sc->texturechain; + } +#endif glColor3ubv (lighthalf_v); #if 0 glDisable (GL_TEXTURE_2D);