]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lightning.c
implemented support for GL_ARB_texture_compression - this is controlled
[xonotic/darkplaces.git] / r_lightning.c
index 8e07ad0ff0551786a2d97cabcd184698f8f9c46c..c8ff41f4eb8107dab90ba66459505ef257d23106 100644 (file)
@@ -219,7 +219,7 @@ void R_FogLightningBeam_Vertex3f_Color4f(const float *v, float *c, int numverts,
        float fog;
        for (i = 0;i < numverts;i++, v += 3, c += 4)
        {
-               fog = FogPoint_Model(v);
+               fog = FogPoint_World(v);
                c[0] = r * fog;
                c[1] = g * fog;
                c[2] = b * fog;
@@ -240,6 +240,7 @@ void R_DrawLightningBeam_TransparentCallback(const entity_render_t *ent, const r
        GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
        GL_DepthMask(false);
        GL_DepthRange(0, 1);
+       GL_PolygonOffset(r_refdef.polygonfactor, r_refdef.polygonoffset);
        GL_DepthTest(true);
        if (r_lightningbeam_qmbtexture.integer && r_lightningbeamqmbtexture == NULL)
                r_lightningbeams_setupqmbtexture();