From: havoc Date: Tue, 26 Feb 2008 09:56:01 +0000 (+0000) Subject: disabled cull face on lightning beams X-Git-Tag: xonotic-v0.1.0preview~2387 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7762f7dcc65b9db803f85ec0a20964b1411744e;p=xonotic%2Fdarkplaces.git disabled cull face on lightning beams git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8135 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_lightning.c b/r_lightning.c index 91b2ad6b..584a0241 100644 --- a/r_lightning.c +++ b/r_lightning.c @@ -92,7 +92,7 @@ void r_lightningbeams_setuptexture(void) if (px >= 0 && py >= 0 && px < BEAMWIDTH && py < BEAMHEIGHT) image[py*BEAMWIDTH+px] += 16; } - + for (py = 0;py < BEAMHEIGHT;py++) { for (px = 0;px < BEAMWIDTH;px++) @@ -103,7 +103,7 @@ void r_lightningbeams_setuptexture(void) pixels[(py*BEAMWIDTH+px)*4+3] = 255; } } - + Image_WriteTGABGRA(va("lightningbeam%i.tga", imagenumber), BEAMWIDTH, BEAMHEIGHT, pixels); } @@ -242,6 +242,7 @@ void R_DrawLightningBeam_TransparentCallback(const entity_render_t *ent, const r GL_DepthRange(0, 1); GL_PolygonOffset(r_refdef.polygonfactor, r_refdef.polygonoffset); GL_DepthTest(true); + GL_CullFace(GL_NONE); if (r_lightningbeam_qmbtexture.integer && r_lightningbeamqmbtexture == NULL) r_lightningbeams_setupqmbtexture(); if (!r_lightningbeam_qmbtexture.integer && r_lightningbeamtexture == NULL)