]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lightning.c
added fogging info to rsurface state so model scaling applies to fog
[xonotic/darkplaces.git] / r_lightning.c
index 2209963e4380a2f07642bfa582be66e15886524b..2de7600671bdbb566ce97b3c45ee1fb573a018dd 100644 (file)
@@ -239,6 +239,7 @@ void R_DrawLightningBeam_TransparentCallback(const entity_render_t *ent, const r
 
        // set up global fogging in worldspace (RSurf_FogVertex depends on this)
        VectorCopy(r_refdef.view.origin, rsurface.localvieworigin);
+       rsurface.fograngerecip = r_refdef.fograngerecip;
 
        R_Mesh_Matrix(&identitymatrix);
        GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);