]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.c
fixed bugs concerning rtlighting of transparent entities
[xonotic/darkplaces.git] / r_shadow.c
index 88bc073587445478ce9656fe991536ed5a4075d2..8eb69cbfd82d5f6b35b6fa75f5ba04510ad5cdac 100644 (file)
@@ -3003,7 +3003,6 @@ void R_DrawRTLight(rtlight_t *rtlight, qboolean visible)
                        entity_render_t *ent = r_refdef.entities[i];
                        if (BoxesOverlap(ent->mins, ent->maxs, rtlight->cullmins, rtlight->cullmaxs)
                         && ent->model
-                        && !(ent->flags & RENDER_TRANSPARENT)
                         && (r_refdef.worldmodel == NULL || r_refdef.worldmodel->brush.BoxTouchingLeafPVS == NULL || r_refdef.worldmodel->brush.BoxTouchingLeafPVS(r_refdef.worldmodel, leafpvs, ent->mins, ent->maxs)))
                        {
                                // about the VectorDistance2 - light emitting entities should not cast their own shadow