From a7762f7dcc65b9db803f85ec0a20964b1411744e Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 26 Feb 2008 09:56:01 +0000 Subject: [PATCH] disabled cull face on lightning beams git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8135 d7cf8633-e32d-0410-b094-e92efae38249 --- r_lightning.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2